fork download
  1. using System;
  2.  
  3. public class Example
  4. {
  5. public static void Main()
  6. {
  7. int value = 100;
  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.03s 37016KB
stdin
Standard input is empty
stdout
100^0 = 1
100^1 = 100
100^2 = 10,000
100^3 = 1,000,000
100^4 = 100,000,000
100^5 = 10,000,000,000
100^6 = 1,000,000,000,000
100^7 = 100,000,000,000,000
100^8 = 10,000,000,000,000,000
100^9 = 1,000,000,000,000,000,000
100^10 = -9,223,372,036,854,775,808
100^11 = -9,223,372,036,854,775,808
100^12 = -9,223,372,036,854,775,808
100^13 = -9,223,372,036,854,775,808
100^14 = -9,223,372,036,854,775,808
100^15 = -9,223,372,036,854,775,808
100^16 = -9,223,372,036,854,775,808
100^17 = -9,223,372,036,854,775,808
100^18 = -9,223,372,036,854,775,808
100^19 = -9,223,372,036,854,775,808
100^20 = -9,223,372,036,854,775,808
100^21 = -9,223,372,036,854,775,808
100^22 = -9,223,372,036,854,775,808
100^23 = -9,223,372,036,854,775,808
100^24 = -9,223,372,036,854,775,808
100^25 = -9,223,372,036,854,775,808
100^26 = -9,223,372,036,854,775,808
100^27 = -9,223,372,036,854,775,808
100^28 = -9,223,372,036,854,775,808
100^29 = -9,223,372,036,854,775,808
100^30 = -9,223,372,036,854,775,808
100^31 = -9,223,372,036,854,775,808
100^32 = -9,223,372,036,854,775,808