0
What is the condition to find leap year
2 Answers
+ 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
For the c# equivalent;
public static bool IsLeapYear(
int year
)