#include <iostream>
using namespace std;
float square_num(float num);
float cube_num(float num);
int main()
{
int choice;
float answer;
answer = square_num(1.2);
answer = cube_num(1.2);
cout << "Your answer is " << answer <<" \n";
return 0;
}
float square_num(float num)
{
float a;
a = num * num;
return a;
}
float cube_num(float num)
{
float a;
a = num * num * num;
return a;
}
|