find the squared of a number
xxxxxxxxxx
#include <iostream>
#include <cmath>
using namespace std;
int main() {
// Declare variables
double r1;
// Get the number
cout << "Enter the number: ";
cin >> r1;
// Calculate the squared
double sqrt = pow(r1, 3);
// Output the result
cout << sqrt
return 0;
}
or just copy line 14 to your code