Guest User

Untitled

a guest
Oct 16th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5. int main ()
  6. {
  7. int n1 = 0;
  8. int n2 = 0;
  9. int nAdd = n1 + n2;
  10. int nSub = n1 - n2;
  11. int nMult = n1 * n2;
  12. int nDiv = n1 / n2;
  13.  
  14. cout << "Enter a number: ";
  15. cin >> n1;
  16. cout << "Enter another number: ";
  17. cin >> n2;
  18.  
  19.  
  20.  
  21.  
  22. cout << n1 << " + " << n2 << " = " << nAdd;
  23. cout << n1 << " - " << n2 << " = " << nSub;
  24. cout << n1 << " * " << n2 << " = " << nMult;
  25. cout << n1 << " / " << n2 << " = " << nDiv;
  26.  
  27. }
Add Comment
Please, Sign In to add comment