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