void setup()
{
size(500,500);
background(0);
textSize(30);
value_leapYear(1800);
}
void value_leapYear(int year)
{
text("Year = "+year,width/3,height/3);
if(year%4 == 0 && year%100 != 0)
{
text("LEAPYEA!",width/3,height/2);
}
else
{
text("NOT LEAPYEAR !",width/3,height/2);
}
}
ไม่มีความคิดเห็น:
แสดงความคิดเห็น