C program to print calculator using switch statement

C program to print calculator using switch statement. Simple calculator program in C programming language. This program will execute perform basic task like add, sub, mul and div. To run and execute the basic operation can be done in the simple calculator program in c for beginners

#include<stdio.h> 
int main()
{ 
int a, b, total;
char op; 
printf("Enter the number");
scanf("%d%c%d", &a, &op, &b);
switch(op)
{
case '+':
total = a + b;
break;
case '-':
total = a - b;
break;
case '*':
total = a * b;
break;
case '/':
total = a / b;
break; 
}
printf("total = %d", total);
return 0; 
} 

Enter the number56+44
total = 100