Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Leap-year/Genie/leap-year.genie
Normal file
13
Task/Leap-year/Genie/leap-year.genie
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[indent=4]
|
||||
/*
|
||||
Leap year, in Genie
|
||||
|
||||
valac leapYear.gs
|
||||
./leapYear
|
||||
*/
|
||||
init
|
||||
years:array of DateYear = {1900, 1994, 1996, 1997, 2000, 2100}
|
||||
|
||||
for year in years
|
||||
status:string = year.is_leap_year() ? "" : "not "
|
||||
stdout.printf("%d is %sa leap year.\n", year, status)
|
||||
Loading…
Add table
Add a link
Reference in a new issue