The n-th day from the end of a month

Report a typo

Write a program that prints the n-th day from the end of a month.

The program must read the year, the month, and the remaining number of days till the end of the month from standard input and then output the date.

Sample Input 1:

2017 3 15

Sample Output 1:

2017-03-17
Write a program in Java 17
class Main {
public static void main(String[] args) {
// put your code here
}
}
___

Create a free account to access the full topic