You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Write a program to compare two given dates. To store a date uses a structure that contains three members namely day, month and year. If the dates are equal then display message equal otherwise unequal.
struct Date{
int day;
int month;
int year;
} d1, d2;
int main() {
printf("Enter the first date (day, month, year) \n");
scanf("%d%d%d", &d1.day, &d1.month, &d1.year);
printf("Enter the second date (day, month, year) \n");