#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

void get_number (void);
int square (int num);

float number;

int main(void) {

	get_number();
	cout << "Your favorite number is " << number  << endl;
	
	cout << "Your favorite number to the power of 2 is " << pow(number,2)
		 << endl;

	cout << "Your favorite number squared is " << square(number)
		 << endl;
	
	return 0;
}

void get_number (void) {

	cout << "What is your favorite number?";
	cin >> number;

}

int square (int num) {

	return num * num;

}