University
of Delaware


Year 2000 Example Program

Fortran Program samp1.f - 2-digit Year Processing

Enter two sets of names and birthdates using 2-digit years The format for a birthdate is MMDDYY.

Examples:

The following example, where John Older was born on December 25, 1980 and Fred Younger was born on November 8, 1998 will give the correct answer:



        John Older
        122580
        Fred Younger
        110898
The following example, where John Older was born on January 1, 1998 and Fred Younger was born on November 25, 2001 will give the wrong answer:
        John Older
	010198
	Fred Younger
	112501 

   Name 1:   
   Age 1 :   

   Name 2:   
   Age 2 :   
Submit the age/birthdate data to progam samp1.f