Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- char day[10];
- printf("Enter Day Name:");
- scanf("%s",&day);
- if(strcmp(day, "Saturday")==0)
- {
- printf("Saturday: \n 7.0-9.0=Class Reading\n 11.0-2.0=Programming");
- }
- else if(strcmp(day, "Sunday")==0)
- {
- printf("Sunday: \n 7.0-9.0=Class Reading\n 11.0-2.0=Programming");
- }
- else if(strcmp(day, "Monday")==0)
- {
- printf("Monday: \n 7.0-9.0=Class Reading\n 11.0-2.0=Programming");
- }
- else if(strcmp(day, "Tuesday")==0)
- {
- printf("Tuesday: \n 7.0-9.0=Class Reading\n 11.0-2.0=Programming");
- }
- else if(strcmp(day, "Wednessday")==0)
- {
- printf("WednessDay: \n 7.0-9.0=Class Reading\n 11.0-2.0=Programming");
- }
- else if(strcmp(day, "Thrusday")==0)
- {
- printf("Thrusday: \n10.0-1.0=Revice Math 7.0-9.0=Revice EEE");
- }
- else
- {
- printf("Holyday!! Just Chill!!");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement