Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main ()
- {
- int n1 = 0;
- int n2 = 0;
- int nAdd = n1 + n2;
- int nSub = n1 - n2;
- int nMult = n1 * n2;
- int nDiv = n1 / n2;
- cout << "Enter a number: ";
- cin >> n1;
- cout << "Enter another number: ";
- cin >> n2;
- cout << n1 << " + " << n2 << " = " << nAdd;
- cout << n1 << " - " << n2 << " = " << nSub;
- cout << n1 << " * " << n2 << " = " << nMult;
- cout << n1 << " / " << n2 << " = " << nDiv;
- }
Add Comment
Please, Sign In to add comment