#include <iostream>
using namespace std;
struct data
{
int day,month,year;
}d1,d2;
int main()
{
cout<<"Enter first date\n";
cin>>d1.day>>d1.month>>d1.year;
cout<<"\nEnter the second date\n";
cin>>d2.day>>d2.month>>d2.year;
if(d1.day==d2.day && d1.month==d2.month && d1.year==d2.year)
cout<<"\nEqual";
else
cout<<"\nUnequal";
return 0;
}
Comments
Leave a comment