Skip to content

Instantly share code, notes, and snippets.

@ik11235

ik11235/b.cpp

Created Dec 6, 2014
Embed
What would you like to do?
#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