1
0
LearningCPP/main.cpp

17 lines
244 B
C++
Raw Normal View History

2022-08-12 14:59:08 +01:00
#include <iostream>
2022-08-13 00:34:25 +01:00
int getValue()
{
std::cout << "Enter an integer: ";
int x{};
std::cin >> x;
return x;
}
2022-08-12 14:59:08 +01:00
int main()
{
std::cout << getValue() + (getValue() * getValue()); // a + (b * c)
return 0;
2022-08-12 14:59:08 +01:00
}