Prog#044: Arithmetic operator - using switch

/* 
Program#44
Arithmetic operator - using switch
*/

#include <stdio.h>
main(){
char a;
printf("\nEnter a operator :");
scanf("%c",&a);
switch(a){
case '+':
case '-':
case '*':
case '/':
printf("\nArithmetic operator %c",a);
break;
default:
printf("\n Not an arithmetic operator ");
}
}