Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //File: driver2.c
- //by: Jason Yim
- //login: jyim3
- //team: JDD
- //date:
- //this is the driver file for days in a month
- #include <stdio.h>
- #include "days.h"
- int main()
- {
- int month, year;
- printf("Enter the month and year to find the number of days in that month\n");
- while(scanf("%d %d", &month, &year) != EOF)
- {
- days_in_month(month, year);
- printf("This month has %d days\n", days_in_month(month, year));
- printf("Enter the month and year to find the number of days in that month\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement