#include <iostream>#include <cmath> int main(){ std::cout << "2 ^ 4 = " << std::pow(2.0, 4.0) << std::endl;}
Standard input is empty
2 ^ 4 = 16
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!