Sha256: f1081d1b062e8b4d86066ef6f3ac5b58da40742910be9d304719af34beba0af8

Contents?: true

Size: 350 Bytes

Versions: 74

Compression:

Stored size: 350 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 leapYear( year ) {
		if( year % 400 == 0 ) {
			return true;
		} else if( year % 4 == 0 && year % 100 != 0 ) {
			return true;
		}
		return false;
	}
}

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.179 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.178 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.177 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.176 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.175 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.174 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.173 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.172 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.171 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.170 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.169 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.167 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.166 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.165 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.164 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.163 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.162 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.161 tracks/cfml/exercises/leap/Solution.cfc
trackler-2.2.1.160 tracks/cfml/exercises/leap/Solution.cfc