C Programming

CLASS EXERCISE C22


	#include <stdio.h>

	struct  date  {        /* Global definition of date */
		int day, month, year;
	};

	main()
	{
		struct date dates[5];
		int i;

		for( i = 0; i < 5; ++i ) {
			printf("Please enter the date (dd:mm:yy)" );
			scanf("%d:%d:%d", &dates[i].day, &dates[i].month,
				&dates[i].year );
		}
	}


©Copyright B Brown. 1984-1999. All rights reserved.