Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //File: driver2.c
  2. //by: Jason Yim
  3. //login: jyim3
  4. //team: JDD
  5. //date:
  6.  
  7. //this is the driver file for days in a month
  8.  
  9. #include <stdio.h>
  10. #include "days.h"
  11.  
  12. int main()
  13. {
  14. int month, year;
  15.  
  16. printf("Enter the month and year to find the number of days in that month\n");
  17. while(scanf("%d %d", &month, &year) != EOF)
  18. {
  19. days_in_month(month, year);
  20. printf("This month has %d days\n", days_in_month(month, year));
  21.  
  22. printf("Enter the month and year to find the number of days in that month\n");
  23. }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement