Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream.h>
- #include <conio.h>
- void main ()
- {
- int x, y;
- cout << "x= ";
- cin >> x;
- cout << "y= ";
- cin >> y;
- cout << "x+y= " << x+y << endl;
- cout << "x-y= " << x-y << endl;
- cout << "x*y= " << x*y << endl;
- if (y != 0)
- cout << "x/y= " << (float)x/y << endl;
- getch ();
- }
Advertisement
Add Comment
Please, Sign In to add comment