Post Codes

Friday, October 15, 2021

#include <iostream>
int getValue()// reset any error flags
{
    int x{};
    std::cin >> x;
    return x;
}

int main()
{
    std::cout << getValue() + (getValue() * getValue()); // a + (b * c)
    return 0;
}

No comments:

Post a Comment