fork download
  1. using System;
  2.  
  3. public class Example
  4. {
  5. public static void Main()
  6. {
  7. int value = 74;
  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
74^0 = 1
74^1 = 74
74^2 = 5,476
74^3 = 405,224
74^4 = 29,986,576
74^5 = 2,219,006,624
74^6 = 164,206,490,176
74^7 = 12,151,280,273,024
74^8 = 899,194,740,203,776
74^9 = 66,540,410,775,079,424
74^10 = 4,923,990,397,355,877,376
74^11 = -9,223,372,036,854,775,808
74^12 = -9,223,372,036,854,775,808
74^13 = -9,223,372,036,854,775,808
74^14 = -9,223,372,036,854,775,808
74^15 = -9,223,372,036,854,775,808
74^16 = -9,223,372,036,854,775,808
74^17 = -9,223,372,036,854,775,808
74^18 = -9,223,372,036,854,775,808
74^19 = -9,223,372,036,854,775,808
74^20 = -9,223,372,036,854,775,808
74^21 = -9,223,372,036,854,775,808
74^22 = -9,223,372,036,854,775,808
74^23 = -9,223,372,036,854,775,808
74^24 = -9,223,372,036,854,775,808
74^25 = -9,223,372,036,854,775,808
74^26 = -9,223,372,036,854,775,808
74^27 = -9,223,372,036,854,775,808
74^28 = -9,223,372,036,854,775,808
74^29 = -9,223,372,036,854,775,808
74^30 = -9,223,372,036,854,775,808
74^31 = -9,223,372,036,854,775,808
74^32 = -9,223,372,036,854,775,808