// This program prompts the user to enter // the values of pi (= 3.1415...) and // e (= 2.71828...). It then computes // e to the pi and pi to the e so that // the user can determine which is larger. #include #include using namespace std; main() { double pi, e; cout << "Enter pi: "; cin >> pi; cout << "Enter e: "; cin >> e; cout << "e to the pi = " << pow( e, pi ) << endl; cout << "pi to the e = " << pow( pi, e ) << endl; return 0; }