/I took input from user as 'a' and 'b' but in 'b' it takes 0 by default ..... whatever i give in 'b' as input it showing 0 as 'b' on applying Operation.... C code ....../
#include <stdio.h>
int main()
{
int a,b;
printf("Enter the I no. : ");
scanf("%d",&a);
printf("Enter the II no. : ");
scanf("%d",&b);
char c;
printf("Enter the Operation : ");
scanf("%s",&c);
switch (c)
{
case '+':
printf("Addtion of %d and %d = %d",a,b,a+b);
break;
case '-':
printf("Subtraction of %d and %d = %d",a,b,a-b);
break;
case '*':
printf("Multiplication of %d and %d = %d",a,b,a*b);
break;
case '/':
printf("Division of %d and %d = %d",a,b,a/b);
break;
}
}