fork download
  1. using System;
  2.  
  3. public class Example
  4. {
  5. public static void Main()
  6. {
  7. int value = 1000000;
  8. for (int power = 0; power <= 32; power++)
  9. Console.WriteLine("{0}^{1} = {2:N0}",
  10. value, power, (long)Math.Pow(value, power));
  11. }
  12. }
Success #stdin #stdout 0.04s 37016KB
stdin
Standard input is empty
stdout
1000000^0 = 1
1000000^1 = 1,000,000
1000000^2 = 1,000,000,000,000
1000000^3 = 1,000,000,000,000,000,000
1000000^4 = -9,223,372,036,854,775,808
1000000^5 = -9,223,372,036,854,775,808
1000000^6 = -9,223,372,036,854,775,808
1000000^7 = -9,223,372,036,854,775,808
1000000^8 = -9,223,372,036,854,775,808
1000000^9 = -9,223,372,036,854,775,808
1000000^10 = -9,223,372,036,854,775,808
1000000^11 = -9,223,372,036,854,775,808
1000000^12 = -9,223,372,036,854,775,808
1000000^13 = -9,223,372,036,854,775,808
1000000^14 = -9,223,372,036,854,775,808
1000000^15 = -9,223,372,036,854,775,808
1000000^16 = -9,223,372,036,854,775,808
1000000^17 = -9,223,372,036,854,775,808
1000000^18 = -9,223,372,036,854,775,808
1000000^19 = -9,223,372,036,854,775,808
1000000^20 = -9,223,372,036,854,775,808
1000000^21 = -9,223,372,036,854,775,808
1000000^22 = -9,223,372,036,854,775,808
1000000^23 = -9,223,372,036,854,775,808
1000000^24 = -9,223,372,036,854,775,808
1000000^25 = -9,223,372,036,854,775,808
1000000^26 = -9,223,372,036,854,775,808
1000000^27 = -9,223,372,036,854,775,808
1000000^28 = -9,223,372,036,854,775,808
1000000^29 = -9,223,372,036,854,775,808
1000000^30 = -9,223,372,036,854,775,808
1000000^31 = -9,223,372,036,854,775,808
1000000^32 = -9,223,372,036,854,775,808