#include<stdio.h>
main()
{
int a,x,y,z;
clrscr();
printf("Select from the following operation:");
printf("1]Addtion");
printf("2]Subtraction");
printf("Enter your choice here:");
scanf("%i",&z);
switch(z)
{
case 1:
printf("Enter Num 1:")
scanf("%i",&x);
printf("Enter Num 2:")
scanf("%i",&y);
a=x+y;
printf("%i + %i = %i",x,y,a);
break;
case 2:
printf("Enter Num 1:")
scanf("%i",&x);
printf("Enter Num 2:")
scanf("%i",&y);
a=x-y;
printf(" %i - %i = %i",x,y,a);
break;
default:
printf("Not in the menu!);
break;
}
umm.. ,:twisted:
so how will i make it to return to the menu after the execution of a case or default??..:twisted::P
what loop will i use or how to make it a nested one??:twisted: