samedi 30 janvier 2021

Write a Java program to check date is true or false (3 integers: dd mm yy) [closed]

Write a program that takes three integers as input from the user: day, month and year. It's necessary to determine whether the date exists. The program takes into account leap days and considers the AD years to be correct.

Example: input - 35 13 2020 output - false

input - 29 2 2020 output - true

It is recommended to use switch/ else, else if

Aucun commentaire:

Enregistrer un commentaire