laith-0093

C++

Jan 16th, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <conio.h>
  3. void main ()
  4. {
  5. int x, y;
  6. cout << "x= ";
  7. cin >> x;
  8. cout << "y= ";
  9. cin >> y;
  10. cout << "x+y= " << x+y << endl;
  11. cout << "x-y= " << x-y << endl;
  12. cout << "x*y= " << x*y << endl;
  13. if (y != 0)
  14. cout << "x/y= " << (float)x/y << endl;
  15. getch ();
  16. }
Advertisement
Add Comment
Please, Sign In to add comment