Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n;
- printf("enter the number");
- scanf("%d",&n);
- if(n==1)
- {
- printf("the day is Sunday");
- }
- else if(n==2)
- {
- printf("the day is Monday");
- }
- else if(n==3)
- {
- printf("the day is Tuesday");
- }
- else if(n==4)
- {
- printf("the day is wednesday");
- }
- else if(n==5)
- {
- printf("the day is Thursday");
- }
- else if(n==6)
- {
- printf("the day is Friday");
- }
- else if(n==7)
- {
- printf("the day is Saturday");
- }
- else
- {
- printf("Invaild Input");
- }
- }
Add Comment
Please, Sign In to add comment