fork download
  1. using System;
  2.  
  3. public class Example
  4. {
  5. public static void Main()
  6. {
  7. int value = 84;
  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
84^0 = 1
84^1 = 84
84^2 = 7,056
84^3 = 592,704
84^4 = 49,787,136
84^5 = 4,182,119,424
84^6 = 351,298,031,616
84^7 = 29,509,034,655,744
84^8 = 2,478,758,911,082,496
84^9 = 208,215,748,530,929,664
84^10 = -9,223,372,036,854,775,808
84^11 = -9,223,372,036,854,775,808
84^12 = -9,223,372,036,854,775,808
84^13 = -9,223,372,036,854,775,808
84^14 = -9,223,372,036,854,775,808
84^15 = -9,223,372,036,854,775,808
84^16 = -9,223,372,036,854,775,808
84^17 = -9,223,372,036,854,775,808
84^18 = -9,223,372,036,854,775,808
84^19 = -9,223,372,036,854,775,808
84^20 = -9,223,372,036,854,775,808
84^21 = -9,223,372,036,854,775,808
84^22 = -9,223,372,036,854,775,808
84^23 = -9,223,372,036,854,775,808
84^24 = -9,223,372,036,854,775,808
84^25 = -9,223,372,036,854,775,808
84^26 = -9,223,372,036,854,775,808
84^27 = -9,223,372,036,854,775,808
84^28 = -9,223,372,036,854,775,808
84^29 = -9,223,372,036,854,775,808
84^30 = -9,223,372,036,854,775,808
84^31 = -9,223,372,036,854,775,808
84^32 = -9,223,372,036,854,775,808