fork download
  1. using System;
  2.  
  3. public class Example
  4. {
  5. public static void Main()
  6. {
  7. int value = 40;
  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
40^0 = 1
40^1 = 40
40^2 = 1,600
40^3 = 64,000
40^4 = 2,560,000
40^5 = 102,400,000
40^6 = 4,096,000,000
40^7 = 163,840,000,000
40^8 = 6,553,600,000,000
40^9 = 262,144,000,000,000
40^10 = 10,485,760,000,000,000
40^11 = 419,430,400,000,000,000
40^12 = -9,223,372,036,854,775,808
40^13 = -9,223,372,036,854,775,808
40^14 = -9,223,372,036,854,775,808
40^15 = -9,223,372,036,854,775,808
40^16 = -9,223,372,036,854,775,808
40^17 = -9,223,372,036,854,775,808
40^18 = -9,223,372,036,854,775,808
40^19 = -9,223,372,036,854,775,808
40^20 = -9,223,372,036,854,775,808
40^21 = -9,223,372,036,854,775,808
40^22 = -9,223,372,036,854,775,808
40^23 = -9,223,372,036,854,775,808
40^24 = -9,223,372,036,854,775,808
40^25 = -9,223,372,036,854,775,808
40^26 = -9,223,372,036,854,775,808
40^27 = -9,223,372,036,854,775,808
40^28 = -9,223,372,036,854,775,808
40^29 = -9,223,372,036,854,775,808
40^30 = -9,223,372,036,854,775,808
40^31 = -9,223,372,036,854,775,808
40^32 = -9,223,372,036,854,775,808