how it is wrong?

#include<stdio.h>
int main()
{
float A,B;
char C;
scanf("%d\n%1d\n%c",&A,&B,&C);

if(C==’+’)
printf("%f",A+B);
else if(C==’-’)
printf("%f",A-B);
else if(C==’’)
printf("%f",A
B);
else if(C==’/’)
printf("%.1f",A/B);

return (0);
}
checked many test samples…all correct…but codechef compiler gives wrong answer…why?? plz help

Please mention the problem code in which you are getting errors. Also make sure to intend your code properly so that others can understand it and answer your query. Try to link your solution page or your code on IDEONE instead of pasting your code here. A quick look at your code suggests that you have missed * in

printf("%f",AB);

Fix it and you should get AC.

Can u specify the question