I'm creating a program that is supposed to have enumerated constants that contain days of the week. I am also supposed to have a variable called today that is of type week. Okay, I think I have done all of that correctly. Now I am supposed to assign a value to today. I think I've done that right as well. If it Monday-Friday, then one message displays. If it's the weekend, then you should get the other one. Now, everything looks right to me, but I keep getting the work day message. Is the user input failing to assign? That is the only thing that I can think that would be causing this.
#include <stdio.h>
int main()
{
enum week { Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday } today;
printf("What day is today? ");
scanf("%c", &today);
if (today == Sunday || today == Saturday)
printf("\nHooray, it's the weekend!\n");
else
printf("\nDrat, it's a work day.\n");
return 0;
}