fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. int main()
  5. {
  6. std::cout << "2 ^ 4 = " << std::pow(2.0, 4.0) << std::endl;
  7. }
Success #stdin #stdout 0s 2884KB
stdin
Standard input is empty
stdout
2 ^ 4 = 16