Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int a, b;
- void input() {
- cout << "Enter a: ";
- cin >> a;
- cout << "Enter b: ";
- cin >> b;
- }
- void arithmometer(int a, int b) {
- if (a == 0 & b == 0) {
- exit(0);
- } else {
- cout << a * b << endl;
- }
- }
- int main() {
- while (true) {
- input();
- arithmometer(a, b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement