fork download
  1. using System;
  2.  
  3. public class Example
  4. {
  5. public static void Main()
  6. {
  7. int value = 499;
  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
499^0 = 1
499^1 = 499
499^2 = 249,001
499^3 = 124,251,499
499^4 = 62,001,498,001
499^5 = 30,938,747,502,499
499^6 = 15,438,435,003,747,000
499^7 = 7,703,779,066,869,753,856
499^8 = -9,223,372,036,854,775,808
499^9 = -9,223,372,036,854,775,808
499^10 = -9,223,372,036,854,775,808
499^11 = -9,223,372,036,854,775,808
499^12 = -9,223,372,036,854,775,808
499^13 = -9,223,372,036,854,775,808
499^14 = -9,223,372,036,854,775,808
499^15 = -9,223,372,036,854,775,808
499^16 = -9,223,372,036,854,775,808
499^17 = -9,223,372,036,854,775,808
499^18 = -9,223,372,036,854,775,808
499^19 = -9,223,372,036,854,775,808
499^20 = -9,223,372,036,854,775,808
499^21 = -9,223,372,036,854,775,808
499^22 = -9,223,372,036,854,775,808
499^23 = -9,223,372,036,854,775,808
499^24 = -9,223,372,036,854,775,808
499^25 = -9,223,372,036,854,775,808
499^26 = -9,223,372,036,854,775,808
499^27 = -9,223,372,036,854,775,808
499^28 = -9,223,372,036,854,775,808
499^29 = -9,223,372,036,854,775,808
499^30 = -9,223,372,036,854,775,808
499^31 = -9,223,372,036,854,775,808
499^32 = -9,223,372,036,854,775,808