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 ); } }