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