Answers

2014-04-07T14:30:46+05:30
Switch is used switch between different choices..
For eg :
printf("1 : ADD 2: SUB 3:DIVIDE 4: EXIT\n");
printf("Enter your choice\n");
scanf("%d",&choice)
switch(choice)
{
case 1: 
           // code for adding
           

case 2:
          // code for subtracting
case  3:
          // code for dividing
case 4:
         // code to exit from this loop
}

This is a sample code.. Not full
1 5 1
2014-04-08T12:14:21+05:30
Please find your answer in .txt uploaded file.
0