hey guys ,can you help me why am getting wrong answer.
#include<iostream>
#include<cstdio>
#include <iomanip>
using namespace std;
int main()
{
int A,B;
char C;
cin>>A>>B>>C;
switch(C)
{
case '+':
cout<<A+B<<"\n";
break;
case '-':
cout<<A-B<<"\n";
break;
case '/':
cout<<setprecision(2)<<A/(float)B<<"\n";
break;
case '*':
cout<<A*B<<"\n";
}
return 0;
}
thank you