10 days before

Report a typo

Write a program that reads a date from the standard input and prints a date that is 10 days before.

Sample Input 1:

2017-06-03

Sample Output 1:

2017-05-24

Sample Input 2:

2017-04-28

Sample Output 2:

2017-04-18
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