- 5

Write a program in C language that does the following:

1. Let the user enter 3 positive integers representing the day, month and year of birth of user. If the user enters the number <= 0 then it will be asked to re-enter it. 2. From the input data, check if the user's date, month and year of birth are valid rate? If it is not valid, ask the user to re-enter it and notify the user specifically wrong data entered. Only ask to re-enter the wrong data (day or month or year). 3. The program outputs the user's age.

29th Dec 2021, 5:20 AM
TrĂșc Ly
TrĂșc Ly - avatar
1 Answer