includ<iostream>
includ<conio>
using namespace std;
int x,z;
char op;
switch(op);{
cout<<"input two a rate"; cin>>x z;
cout<<"category operator ( + , - , * , / , %)"; cin>>op;
swich(op)
case'+':cout<<"opertor +"<<x+z<< endl; break;
case'-':cout<<"opertor -"<<x-z<<endl; break;
case'*':cout<<"opertor *"<<x*z<< endl; break;
case'/':cout<<"opertor /"<<x/z<<endl; break;
case'%':cout<<"opertor %"<<x%z<<endl; break;
default:cout<<"your are false";
getch();
return 0;
}
Henshens 0 Newbie Poster
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
Ketsuekiame commented: +1 +9
<Anurag> 0 Newbie Poster
UFOOOOOOOOOOO -2 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.