C programming Related Problem 01
Suppose, you want to arrange an annual tour 2020 but cannot determine how to fix a spot on it. To solve this problem. Write a C program Code that helps to know preferred choice about tour.
Following Coding(Using Switch Case)
#include <stdio.h>
int main ()
{
int choice;
printf("Enter
the Number Please :");
scanf("%d",
&choice);
switch (choice)
{
case 1 :
printf("Hello ,Buddy We are in Coxs Bazar");
break ;
case 2 :
printf("Hello ,Buddy We are in Saint Martin");
break;
case 3 :
printf("Hello
,Buddy We are in Rangamati");
break;
case 4 :
printf("Hello ,Buddy We are in Sundarban ");
break;
case 5 :
printf("Hello ,Buddy We are in Bandarban");
break;
default:
printf("\n
SORRY BUDDY INVALID CHOICE");
}
return 0;
}
Comments
Post a Comment