Draw a flowchart to accept number of day and display the day of week
Answers
Answered by
0
Answer:
Ram ne sham ko mar diya. Police sham ko dhudh rahi hai.
Answered by
0
Answer:
Sample Solution:
C Code:
#include <stdio.h> void main() { int dayno; printf("Input Day No : "); scanf("%d",&dayno); switch(dayno) { case 1: printf("Monday \n"); break; case 2: printf("Tuesday \n"); break; case 3: printf("Wednesday \n"); break; case 4: printf("Thursday \n"); break; case 5: printf("Friday \n"); break; case 6: printf("Saturday \n"); break; case 7: printf("Sunday \n"); break; default: printf("Invalid day number. \nPlease try again ....\n"); break; } }
Copy
Sample Output:
Input Day No : 4 Thursday
Flowchart:

Explanation:
plz mark in braniliest plz
Similar questions