include<stdio.h>
include<conio.h>
void main()
{
int a,b,c, choice;
printf(1. Add two integers”);
printf(“\n 2. Compare two integers for the larger”);
printf(“\n 3. Test an integers for odd or even”);
printf(“\n 4. Quit);
printf(“enter your choice);
scanf(“%d”, &choice);
switch(“choice”)
{
case 1: printf(“enter a, b”);
scanf(“%d%d”, &a, &b);
c= a+b;
printf(“sum is %d”, c);
break;
case 2: printf(“enter a, b);
scanf(“%d%d”, &a, &b)
if(a>b)
printf(“Lagrest is %d”, a);
else
printf(“largest is %d”, b);
break;
case 3: print(“Enter the number”);
scanf(“%d”, & num);
if(num %2==0)
printf(“number is even”);
else
printf(“number is odd);
break;
case 4:
exit();
default:
printf(“Invalid choice”);
}
getch();
}