mirror of
https://github.com/peter-tanner/CITS-3007-labs.git
synced 2024-12-02 23:30:27 +08:00
21 lines
383 B
Markdown
21 lines
383 B
Markdown
|
# CITS3007 lab 1 demo repository – leap year
|
|||
|
|
|||
|
This repository contains a Makefile and C code for a program (`test_leap`)
|
|||
|
intended to show whether a year (supplied as a command-line argument) is a leap
|
|||
|
year or not.
|
|||
|
|
|||
|
## Building
|
|||
|
|
|||
|
Build with `make`.
|
|||
|
|
|||
|
## Use
|
|||
|
|
|||
|
The program can be run by supplying a year as a command-line argument:
|
|||
|
|
|||
|
```
|
|||
|
$ ./test_leap 1901
|
|||
|
1901 is not a leap year
|
|||
|
```
|
|||
|
|
|||
|
|