#include<stdio.h>
#include<conio.h>
struct date
{
int day;
int month;
int year;
};
void main()
{
struct date d1,d2;
clrscr();
printf(“Enter first date(dd/mm/yyyy):”);
scanf(“%d%d%d”,&d1.day,&d1.month,&d1.year);
printf(“nEnter second date(dd/mm/yyyy):”);
scanf(“%d%d%d”,&d2.day,&d2.month,&d2.year);
if((d1.day==d2.day)&&(d1.month==d2.month)&&(d1.year==d2.year))
printf(“nEQUAL”);
else
printf(“nUNEQUAL”);
getch();
}
Thank you.
It has been very helpful for program-beginners.
You should make online classes for program-solving.
Thanks alot.
It helped me so much