0
Plz can any one help me how to write a source code of leap year
3 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;
}
}
0
thanks but can you give me a source code of random numbers from 0 to 20 which stores in an array