fork download
  1. using System;
  2.  
  3. public class Example
  4. {
  5. public static void Main()
  6. {
  7. int value =1 ;
  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 37024KB
stdin
Standard input is empty
stdout
1^0 = 1
1^1 = 1
1^2 = 1
1^3 = 1
1^4 = 1
1^5 = 1
1^6 = 1
1^7 = 1
1^8 = 1
1^9 = 1
1^10 = 1
1^11 = 1
1^12 = 1
1^13 = 1
1^14 = 1
1^15 = 1
1^16 = 1
1^17 = 1
1^18 = 1
1^19 = 1
1^20 = 1
1^21 = 1
1^22 = 1
1^23 = 1
1^24 = 1
1^25 = 1
1^26 = 1
1^27 = 1
1^28 = 1
1^29 = 1
1^30 = 1
1^31 = 1
1^32 = 1