This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
//initializations | |
int dd2,mm2,yyyy2; | |
int dd1,mm1,yyyy1; | |
int dd,mm,yyyy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int dd2,mm2,yyyy2; | |
int dd1,mm1,yyyy1; | |
int dd,mm,yyyy; | |
printf("Enter current date (format dd/mm/yyyy)\n"); | |
scanf("%d%d%d",&dd2,&mm2,&yyyy2); | |
printf("Enter old date (format dd/mm/yyyy)\n"); | |
scanf("%d%d%d",&dd1,&mm1,&yyyy1); |