0

Plz can any one help me how to write a source code of leap year

11th Jan 2017, 11:12 AM
muhammad salman
muhammad salman - avatar
2 Respuestas
+ 1
Java method, just translate it to C++ private boolean isLeapYear(int year){ if (year % 4 == 0){ if (year % 100 == 0) if (year % 400 == 0) return true; else return false; else return true; }else { return false; } }
11th Jan 2017, 12:35 PM
Uran Kajtazaj
Uran Kajtazaj - avatar
0
thanks but can you give me a source code of random numbers from 0 to 20 which stores in an array
7th Mar 2017, 9:43 AM
muhammad salman
muhammad salman - avatar