Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. //File: driver3.c
  2. //by: Jason Yim
  3. //login: jyim3
  4. //team: JDD
  5. //date:
  6.  
  7. //this is the driver program for julian date program
  8.  
  9. #include <stdio.h>
  10. #include "julian.h"
  11.  
  12. int main()
  13. {
  14. int value, day, month, year;
  15.  
  16. printf("Enter a (mm dd yyyy) to find the Juilian Date\n");
  17. while(scanf("%d %d %d", &month, &day, &year) != EOF)
  18. {
  19. value = julian_date(day, month, year);
  20. printf("The Julian date is day %d\n", value);
  21. printf("Please enter a new (dd mm yyyy) to find the Juilian Date (EOF to quit)\n");
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement