Main()
{
int a,b,ch;
printf(“Enter first number\n”);
scanf(“%d”,&a);
printf(“Enter second number\n”);
scanf(“%d”,&b);
printf(“ Enter your choice\n”);
scanf(“%d”,&ch
}
case 1: printf(“Addition =%d\n”,a+b);
break;
case 2: printf(“Subtraction =%d\n”,a-b);
case 3: printf(“Multiplication =%d\n”,a*b);
break;
case 4:printf (“Division=%d\n”,a/b);
break;
default:
printf(Invalid Choice\n”);
}
Posted by: Wasim Javed
No comments:
Post a Comment