Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int intex17(){
- int nr1=0, nr2=0, sumtotal=0;
- cout << "\n####Lab 2, Exercise 17####\n";
- cout << "Calculator: Sum of Two Numbers\n\n";
- cout << "Enter First Number:" << endl;
- cin >> nr1;
- cout << "\nEnter Second Number" << endl;
- cin >> nr2;
- cout << "Press <Enter> after manually trying to solve, to see the answer.\n";
- cin.get();
- cin.ignore();
- sumtotal = nr1 + nr2;
- cout << "The sum of both numbers is: "<< sumtotal << endl << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement