Jump to content

Easy question for you guys, I really need help


pereira2k5

Recommended Posts

You can determine if a year is a leap year by testing if it is divisble by 4

howver, years that are also divisible by 100 are not leap years unless there divisible by 40.

 

I know that you have to do if and the condition and && and || and stuff like that, the only question is how do I determine if something is divisible by something else?

 if ( YEAR / 4 == "true" echo " This is a leap Year

... Is something like that correct I dont understand how to test to see if something is divisible... Thanks guys

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.