In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of March 10th
(this exercise will still be available for submission after that deadline, but without couting towards your grade)
[to understand the context of this problem, you should read the class #02 exercise sheet]
Kermit, the frog, really needs to know what day is tomorrow, and the day after tomorrow, and so on... can you help him?
Write a program that, given a date (identified by the day, month and year), computes the next date, that is, the one that comes on the day immediately after.
The input consists of one line containing three integers D M Y indicating respectively the day, month and year to consider.
The output should be a single line displaying D' M' Y', the date of the next day, that is, the day that comes immediately after the input date.
The following limits are guaranteed in all the test cases that will be given to your program:
1 ≤ D ≤ 31 | Day to consider | |
1 ≤ M ≤ 12 | Month to consider | |
1 ≤ Y ≤ 5000 | Year to consider |
Is it also guaranteed that any input date will correspond to a valid date (that is, the number of days will be possible for that specific month and year).
Example Input 1 | Example Output 1 |
31 1 2025 |
1 2 2025 |
Example Input 2 | Example Output 2 |
28 2 2012 |
29 2 2012 |
Example Input 3 | Example Output 3 |
31 12 1992 |
1 1 1993 |