fork(1) download
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <cmath>
  4.  
  5. int main()
  6. {
  7. std::cout << "a b pow(a, b)\n" << std::setprecision(15);
  8.  
  9. for(int i = 1; i < 12; i++) {
  10. std::cout << std::left << std::setw(3) << i
  11. << std::setw(3) << i + 1
  12. << std::right << std::setw(14) << std::pow(i, i + 1) << "\n";
  13. }
  14. }
  15.  
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
a  b       pow(a, b)
1  2               1
2  3               8
3  4              81
4  5            1024
5  6           15625
6  7          279936
7  8         5764801
8  9       134217728
9  10     3486784401
10 11   100000000000
11 12  3138428376721