Good morning, I would like to know, because my calculator program is not printing the value of the operations? Below is the code:
#include <stdio.h>
int main (void)
{
float A, B;
char op;
scanf("%f", &A);
scanf("%c", &op);
scanf("%f", &B);
switch('op')
{
case 43 : printf("%f", A + B);
break;
case 45 : printf("%f", A - B);
break;
case 42 : printf("%f", A * B);
break;
case 47 : printf("%f", A / B);
break;
}
return 0;
}