Java Program to find leap year.year should be 4 digit.year should not be negative number | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Java Program to find leap year.year should be 4 digit.year should not be negative number

All condition should be there

11th Aug 2019, 3:55 PM
Dhiraj singh✔️
Dhiraj singh✔️ - avatar
5 Answers
+ 8
Plz show us your attempt. If you have any doubts in that we can help you out.
11th Aug 2019, 5:42 PM
Rstar
Rstar - avatar
+ 7
Dhiraj singh✔️ Conditions you putted for leap year are correct, and that condition for 4 digit number seems correct too as according to this: https://www.quora.com/Which-year-in-human-history-was-truly-the-first-leap-year 1st leap year is a 4 digit number(you can put condition to be >=1752 that would make more sense), who knows that the Earth will see a 5 digit leap year ? still I see no problem in allowing for greater number of digits to fall in leap year.
11th Aug 2019, 9:33 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 7
Hello, 😊 If you need help you can post the code you are struggling with!  • SEARCH for similar QUESTIONS or ANSWERS before posting  • Include relevant TAGS  • https://www.sololearn.com/post/75089/?ref=app  • https://code.sololearn.com/WvG0MJq2dQ6y/
11th Aug 2019, 10:09 PM
Danijel Ivanović
Danijel Ivanović - avatar
+ 1
https://photos.app.goo.gl/xj43GPa2vccDTWi28 Have a look
11th Aug 2019, 7:12 PM
Dhiraj singh✔️
Dhiraj singh✔️ - avatar
0
Not able to upload picture
11th Aug 2019, 7:11 PM
Dhiraj singh✔️
Dhiraj singh✔️ - avatar