#include<stdio.h>
#include,conio.h>
void main()
{
int a,b,c,choice;
clrscr();
printf("\n Enter two numbers");
scanf(" %d %d ", &a, &b);
printf("\n Press 1 for Addition ");
printf("\n Press 2 for Subtraction ");
printf("\n Press 3 for Multiplication ");
printf("\n Press 4 for Division ");
printf("\n Enter your choice");
scanf(" %d", &choice);
switch(choice)
{
case 1:
c=a+b;
printf("\n Sum = %d",c);
break;
case 2:
c=a-b;
printf("\n Subtraction = %d",c);
break;
printf("\n Multiplication = %d",c);
break;
printf("\n Division = %d",c);
break;
#include,conio.h>
void main()
{
int a,b,c,choice;
clrscr();
printf("\n Enter two numbers");
scanf(" %d %d ", &a, &b);
printf("\n Press 1 for Addition ");
printf("\n Press 2 for Subtraction ");
printf("\n Press 3 for Multiplication ");
printf("\n Press 4 for Division ");
printf("\n Enter your choice");
scanf(" %d", &choice);
switch(choice)
{
case 1:
c=a+b;
printf("\n Sum = %d",c);
break;
case 2:
c=a-b;
printf("\n Subtraction = %d",c);
break;
case 3:
c=a*b;printf("\n Multiplication = %d",c);
break;
case 4:
c=a/b;printf("\n Division = %d",c);
break;
default :
printf("\n Wrong Input");
}
getch();
}