// Online C compiler to run C program online
#include <stdio.h>
int main() {
int a,b;
char c;
printf("Give a number a =");
scanf("%d",&a);
printf("Give a number b =");
scanf("%d",&b);
printf("Give any operation + - * / %");
scanf("%c",&c);
switch(c)
{
case '+' :
printf("The sum of two numbers%d",a+b);
break;
case '-' :
printf("The subtraction of two numbers%d",b-a);
break;
case '*':
printf("The multiplication of two numbers%d",a*b);
break;
case '/' :
printf("The ddivision of two numbers%d", a/b);
case '%' :
printf("The modulus of two numbers %d",a%b);
break;
}
return 0;
}