Every thing good no error when compilation …but after submiting show test not pass. let me explain why?
hope you reply Soon.
#include
using namespace std;
int main() {
char op;
float n1,n2;
cin>>op;
cin>>n1>>n2;
switch(op){
case ‘+’:
cout<<n1+n2;
break;
case’-’:
cout<<n1-n2;
break;
case’’:
cout<<n1n2;
break;
case’/’:
cout<<n1/n2;
break;
default:
cout<<"Invalid Opration. Try again.";
break;
}
return 0;
}