#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double num = 7;
double square = num*num;
double cube = square*num;
double exponent = 4.0;
double result = pow(num, exponent);
cout << "The square of 7 is " << square << endl;
cout << "The cube of 7 is " << cube << endl;
cout << "The 4th power of 7 is " << result << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: