hi can someone help design a programme in c where its amultiple selction option for the user is inclusive
Answers
Answered by
1
Use a "switch" statement or an "if" statement, though i would advice you to use a swtich statement. Here is an example:
int choice;
printf("Enter \n 1. To print Hello \n 2. To print Hi \n 3. To print Bye\n");
scanf("%d",&choice);
switch(choice)
{
case 1: printf("Hello");
break;
case 2: printf("Hi");
break;
case 3:printf("Bye");
break;
default:
printf("Number entered is not valid");
}
Similar questions