Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef GLIBCXX_IOSTREAM
- #include <iostream>
- #endif
- using namespace std;
- char again;
- char menu(double a, double b, double answer, char operation, char again)
- {
- cout << "This is the first operand: " << a << endl;
- cout << "This is the second operand: " << b << endl;
- cout << "This is the answer from the operation performed: " << answer << endl;
- cout << "This is the operation performed: " << operation << endl;
- cout << "Would you like to run again(y/n)? ";
- cin >> again;
- return again;
- }
Advertisement
Add Comment
Please, Sign In to add comment