Please Help A Noob Here (plz Im Begging You)
im really new to c programming so i just need some help from you guys to get me started
i got to do this task to create a program that will tell the user whether it is a leap yr and how many days there are in the month when enter...
so far i got this:
printf("Enter yr and month:");
if *i got this type just working on it so ignore me*
printf("has (366) days\n");}
printf("has (365) days\n");}
printf("Janurary has 31 days\n");}
else if (month=2);
printf("Feburary has 28 days\n");}
what did i do wrong???
and later on when im required to change the year like to proper words... how do i do it?
Enter year and month: 1980 2
nineteen hundred eighty<--------------- how do i do this for years from 1792 - 9999???
has three hundred and sixty six (366) days
February has 29 days
THANK YOU ALL FOR YOUR HELP AND I REALLY APPRECIATE IT