Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //File: leap.c
- //By: Jason Yim
- //login: jyim3
- //Team: JDD
- //Date:
- //this is the function file for leap years program
- #include "leap.h"
- int is_leap(int year)
- {
- if(year % 400 == 0 || year % 4 == 0)
- {
- return TRUE;
- }
- else
- {
- return FALSE;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement