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
3 Years
Discussion Span
Last Post by UFOOOOOOOOOOO
Featured Replies
  • 2

    Your code is horribly broken. I'm guessing you meant to post the errors you're getting and ask what's causing them, as per [this helpful guide](http://www.catb.org/esr/faqs/smart-questions.html). Read More

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.
Take the time to help us to help you. Please be thoughtful and detailed and be sure to adhere to our posting rules.