#include <iostream>
#include <iomanip>
#include "SquareCube.h"
int main()
{
float input;
std::cout << "Enter A Value : ";
std::cin >> input;
float input_cubed;
float input_squared = SquareCube(input, input_cubed);
std::cout << std::fixed << std::setprecision(2);
std::cout << "Input Squared : " << std::setw(6) << input_squared << std::endl;
std::cout << "Input Cubed : " << std::setw(6) << input_cubed << std::endl;
return 0;
}
float SquareCube(float, float &);
#include <cmath>
float SquareCube(float x, float & cube)
{
float square = std::pow(x, 2.0);
cube = std::pow(x, 3.0);
return square;
}