#include <iostream>#include <iomanip>using namespace std; int main() { int N; cin >> N; cout << "Square of " << N << " is " << (N * N) << "\n"; cout << "Cube of " << N << " is " << (N * N * N) << "\n"; return 0;}
4
Square of 4 is 16 Cube of 4 is 64
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!