Write A C Program To Check Given Date Month And Year Is Correct or Not Using If Else Statements .
Logic :
Check All the Month And Days valid or not also Special Condition February Month And Check for Leap Year Calendar .So basically we need to check all date (day : month :year ) as we know that all days are lies between 28 to 31 days and 12 month in a year or year we need to check .
Output:
C Program to Date Validation
Enter The Date (dd mm yy): 15 07 1992
Year Is Vaild
Month Is Vaild
Date Is Vaild
press The Data (dd mm yy): 56 13 19955
Year Is Not Vaild !!! Try Again
Month Is Not Vaild !!! Try Again
Date Is Not Vaild !!! Try Again
need an explanation for this answer? contact us directly to get an explanation for this answer