using namespace std;
int main()
{
int sayi1,sayi2;
char c;
cout<<"SAYI1 : ";
cin>>sayi1;
cout<<"SAYI2 : ";
cin>>sayi2;
cout<<"Yapmak istediginiz islem : ";
cin>>c;
if(c=='+')
cout<<sayi1+sayi2<<endl;
else if(c=='-')
cout<<sayi1-sayi2<<endl;
else if(c=='*')
cout<<sayi1*sayi2<<endl;
else if(c=='%')
cout<<sayi1/sayi2<<endl;
else
cout<<"Hatali islem girdiniz ..."<<endl;
}
Hiç yorum yok:
Yorum Gönder