Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream> //For std::cin, std::cout
- using namespace std;
- int main()
- {
- cout << " a = ? ";
- int a{};
- cin >> a;
- cout << " b = ? ";
- int b{};
- cin >> b;
- cout << '\n';
- cout << " a + b = " << (a+b) << '\n';
- cout << " a - b = " << (a-b) << '\n';
- cout << " a * b = " << (a*b) << '\n';
- cout << " a / b = " << (a/b) << '\n';
- cout << " a % b = " << (a%b) << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement