Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //File: driver3.c
- //by: Jason Yim
- //login: jyim3
- //team: JDD
- //date:
- //this is the driver program for julian date program
- #include <stdio.h>
- #include "julian.h"
- int main()
- {
- int value, day, month, year;
- printf("Enter a (mm dd yyyy) to find the Juilian Date\n");
- while(scanf("%d %d %d", &month, &day, &year) != EOF)
- {
- value = julian_date(day, month, year);
- printf("The Julian date is day %d\n", value);
- printf("Please enter a new (dd mm yyyy) to find the Juilian Date (EOF to quit)\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement