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