include<stdio.h>
void main()
{
int month, day, year;
char m;
again:
printf("Enter month:\t");
scanf("%f", &month);
printf("\nEnter day:\t");
scanf("%d", &day);
if (day==0) && (day>=32)
printf("\nInvalid! Please try again.");
goto again;
printf("Enter year:\t");
scanf("%d", &year);
switch(month)
{
case '1':
m=January;
break;
case '2':
m=February;
break;
case '3':
m=March;
break;
default:
printf("\nInvalid! Please try again.");
goto again;
}
printf("\n\n %d %d, df", month, day, year);
}
//Thats my program. There are errors. im not really familiar in C programming.. Can somebody help me?? Please.. asap..Tnx!!
Tags: