Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- #include <conio.h>
- using namespace std;
- int f,e;
- char d;
- kalk (int a, char b, int c)
- {
- cin >> a;
- cin >> b;
- cin >> c;
- system ("cls");
- switch (b)
- {
- case '*':
- cout << a * c;
- break;
- case '/':
- cout << a / c;
- break;
- case '+':
- cout << a + c;
- break;
- case '-':
- cout << a - c;
- break;
- }
- }
- int main()
- {
- kalk (f,d,e);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement