C Source Codes List | Source Code Home
Program : Program to find difference between two dates.
#include
#include
void main()
{
int day1,mon1,year1,day2,mon2,year2;
int ref,dd1,dd2,i;
clrscr();
printf("Enter first day, month, year");
scanf("%d%d%d",&day1,&mon1,&year1);
scanf("%d%d%d",&day2,&mon2,&year2);
ref = year1;
if(year2
C Source Codes List | Source Code Home
|
|