Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int x, y;
  8.  
  9.     cout << "Please enter two numbers" << endl;
  10.     cin >> x >> y;
  11.  
  12.     int sumAge = x + y;
  13.     int diffAge = x - y;
  14.     int prodAge = x * y;
  15.     int quoAge = x / y;
  16.     int remAge = x % y;
  17.  
  18.     cout << "The sum of your values is " << sumAge << endl;
  19.     cout << "The difference of your values is " << diffAge << endl;
  20.     cout << "The product of your values is " << prodAge << endl;
  21.     cout << "The quotient of your values is " << quoAge << endl;
  22.     cout << "The remainder of your division is " << remAge << endl;
  23.  
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement