Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- void sumdif()
- {
- char a, b, c;
- if(cin>>a>>c>>b && (c=='+' && cout<<(a-'0')+(b-'0')||c=='-' && cout<<(a-'0')-(b-'0'))){}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement