include<iostream.h>
#include<conio.h>
#include<conio.h>
void main()
{ clrscr();
int a,b;
char c;
cout<<“Enter any expression(ex:3*7):”;
cin>>a>>c>>b;
switch(c)
{
case’+’: cout<<“nResult:”<<a+b;
break;
case’-‘: cout<<“nResult:”<<a-b;
break;
case’*’: cout<<“nResult:”<<a*b;
break;
case’/’: cout<<“nResult:”<<a/b;
break;
case’%’: cout<<“nResult:”<<a%b;
break;
}
getch();
}
Ans point number
How is it?
Float using
Then % error ” illegal use of floating point”
How to clear the error