void setup(){
int display = cal_leapyear(1796);
}
int cal_leapyear(int years){
println("That year is " +years);
if((((years %4) == 0) && ((years %100) != 0)) || ((years %400 == 0)))
{
println("That year is a leap year.");
}
else
{
println("That year is not a leap year.");
}
return years;
}

No comments:
Post a Comment