Hello All,
I've been working on a program but one very "simple" part has turned into a stumpper. I am trying to take input from the user and assign it to a variable. Then I put in a print date statement to see if it was working right and it's not. Here's my code, any help would be great!
Code:
#include <stdio.h>
char DATE;
void main(void)
{
printf("test program...PRINT THE DATE!!!\n\n");
printf("Please enter the DATE the last Monday (MM/DD/YY): ");
scanf("%c", &DATE);
printf("\n");
printf("----------------------------------------------------------------\n");
printf("%c", DATE);
fflush(stdin);
getchar();
}