Created
December 6, 2014 17:12
-
-
Save ik11235/571ed95173e3e31a5369 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<algorithm> | |
#include<iostream> | |
using namespace std; | |
int main() | |
{ | |
int a,b,c; | |
cin>>a>>b>>c; | |
if(a+b==c && a-b==c) | |
cout<<"?"<<endl; | |
else if(a+b==c) | |
cout<<"+"<<endl; | |
else if(a-b==c) | |
cout<<"-"<<endl; | |
else | |
cout<<"!"<<endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment