Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cmath>
- #include <algorithm>
- using namespace std;
- void Rofyda_Elghadban(){
- #ifndef ONLINE_JUDGE
- freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
- #endif
- }
- int main()
- { Rofyda_Elghadban();
- long long a,b;
- char x;
- cin>>a>>x>>b;
- if(x=="+"){
- cout<<(a+b)<<"\n";
- }
- else if(x=="-"){
- cout<<(a-b)<<"\n";
- }
- else if(x=="*"){
- cout<<(a*b)<<"\n";
- }
- else if(x=="/"){
- cout<<(a/b)<<"\n";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement