Sha256: be9f5232fe6df0d6b38df99e35f5726aa7c39629d2f5f05b254a609544b47e55

Contents?: true

Size: 352 Bytes

Versions: 72

Compression:

Stored size: 352 Bytes

Contents

/**
* Here is an example solution for the Leap exercise
*/
component {

	/**
	* @year The input year to consider
	*
	* @returns A boolean for whether the inputted year is true or false
	*/
	function isLeapYear( year ) {
		if( year % 400 == 0 ) {
			return true;
		} else if( year % 4 == 0 && year % 100 != 0 ) {
			return true;
		}
		return false;
	}
}

Version data entries

72 entries across 71 versions & 1 rubygems

Version Path
trackler-2.2.1.104 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.103 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.102 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.101 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.100 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.99 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.98 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.97 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.96 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.95 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.94 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.93 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.92 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.91 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.90 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.89 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.88 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.87 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.86 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.85 tracks/cfml/exercises/leap/Solution.cfc