0
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;
}
4
Contributors
3
Replies
21
Views
4 Years
Discussion Span
Last Post by UFOOOOOOOOOOO
0

There are lots of errors here..
First of all there is no main()..so plz tell us what do you want to do in this code then we will sort out the errors and will help you :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.