#include <iostream>
int get_input_from_user()
{
std::cout << "Please give us one integer: ";
int x{};
std::cin >> x;
return x;
}
int multiply_number(int number_input)
{
return number_input * 2;
}
void print_input(int y)
{
std:: cout << "Your number multiply by two is: " << y;
}
int main()
{
int number{multiply_number(get_input_from_user())};
print_input(number);
return 0;
}
#include <iostream>
int get_input_from_user()
{
std::cout << "Please give us one integer: ";
int x{};
std::cin >> x;
return x;
}
int multiply_number(int number_input)
{
return number_input * 2;
}
void print_input(int y)
{
std:: cout << "Your number multiply by two is: " << y;
}
int main()
{
int number{multiply_number(get_input_from_user())};
print_input(number);
return 0;
}