Assessment Activity ( qbasic) program
1. Write a program to display a menu as shown below:
1.5" September
2. 26 January
3. 7 April
enter your choice :
print the message as shown in the table given below, according to the choice entered:
choice entered | Message
1 | teachers day
2 | republic day
3 | world health day
Attachments:
Answers
Answered by
2
Answer:
Made by C language ...
Explanation:
#include<stdio.h>
void main(void){
int option;
printf("Enter the choice : ");
scanf("%d",&option);
if (option==1){
printf("Teachers day ");
}else if(option==2){
printf("Republic day ");
}else if(option==3){
printf("World health day ");
}else
printf("Invalid Choice ");
}
Eng : Hisham Raid Abualhaj
Similar questions
India Languages,
6 months ago
English,
6 months ago
Physics,
11 months ago
English,
1 year ago
English,
1 year ago