Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main () {
- int alpha, bravo, charlie;
- char response = 'Y';
- while (response=='Y'||response=='y')
- {
- system("cls");
- cout << "Problem 5 - Run Run Run" << endl;
- cout << "-----------------------------" << endl;
- cout << "1st Number: ";
- cin >> alpha;
- cout << "2nd Number: ";
- cin >> bravo;
- charlie = alpha + bravo;
- std::cout << "The sum is: " << charlie << endl;
- cout << "\n\nRun the program again?" << endl;
- cout << "[Y]es or any key to STOP! : ";
- cin >> response;
- }
- cout << "\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment