0 like 0 dislike
7.8k views

Write a program that prompts the user to enter two dates and then indicates which date comes earlier on the calendar (m/d/yyyy):
 Sample input:

3/6/2008
5/17/2007

Sample output:

5/17/2007 is earlier than 3/6/2008

 

Sample input:

3/6/2007
5/17/2008

Sample output:

3/6/2007 is earlier than 5/17/2008

 

Sample input:

3/6/2007
3/6/2007

Sample output:

Same day!

 

[Exercise] Coding (C) - asked in C
ID: 22673 - Available when: Unlimited - Due to: Unlimited

edited by | 7.8k views
0 0
Called for Help

56 Answers

0 like 0 dislike
Hidden content!
#include ** *** ** ** *

#include **** ** * *



int compare(int, int);



int main(){
** *** *** ** * * ** inputYear1, inputMonth1, inputDay1;
** *** ** ** ** inputYear2, inputMonth2, inputDay2;
* * ** ** ***** * * * ** *****
* ** ******* ** *** **** * * * *** ** * * * * * * ** * ** *** *
* *** * ***** * * * *** * ** **** * * *** * * ** ****** ** *** * ** *
* * **** * ** ** * *
****** * *** * **** *** *** ********** * * * inputDay, inputMonth, inputYear);
** * * * * * * *** *** * inputYear2) == 1)
** * * * * * * ** * *** ***** * * * ** * ** *** * ***** is earlier than * * * * * * inputMonth1, inputDay1, inputYear1, inputMonth2, inputDay2, inputYear2);
** * * ****** ** * **** * * * * * ******* ** inputYear2) == 2)
* ** ** * * * * *** * *** * *** * * * * * * * * is earlier than ***** ** ** ** inputMonth2, inputDay2, inputYear2, inputMonth1, inputDay1, inputYear1);
**** * * ** ** *** *
** * * *** ** * *** * * * ** *** * * * ** ****** * **** inputMonth2) == 1){
** * ** ** ** *** ** * ***** * * * * ** * **** * ** ** ** * ** * * * ** is earlier than * ** * inputMonth1, inputDay1, inputYear1, inputMonth2, inputDay2, inputYear2);
****** ** * * * * *** * * ** * *
*** ** *** * * *** * * ** ***** ** ** ****** ** ** * * ** **** * inputMonth2) == 2){
* * * ***** * * ** * * * *** * ** ** ** * * * ** * * **** ** ** is earlier than * * * ** * ** inputMonth2, inputDay2, inputYear2, inputMonth1, inputDay1, inputYear1);
** * * * * * * * ** *** * * * **
* ******* * * ***** ** *** * * * *** ** ***
*** ****** * * ** ** * * * * * ****** **** * ** * * ** * * * inputDay2) == 1){
* * *** * * ** **** * * * ** * ** *** * **** * * * ** *** * * *** ** **** *** * ** ** is earlier than * * ** inputMonth1, inputDay1, inputYear1, inputMonth2, inputDay2, inputYear2);
** ** * * ** *** ** * * * * * * * ** * * *** ** ***
* ** * * *** * * ** * * * * * * * * *** **** * ** ** * * * * * **** * * * ** ** inputDay2) == 2){
***** * * * ** ** * ** * ** * *** ** * * *** * ** ** **** * * ** * * ** * **** ** * * ***** *** * * * * * is earlier than ** ** inputMonth2, inputDay2, inputYear2, inputMonth1, inputDay1, inputYear1);
**** * * **** * ***** ** * * *** * ** * * * **** ** ** * **** *** * * * *
** * * *** *** ** *** ** *** * * ******* * **** **** * * * * ** **** *
***** ** * ** ** * * ** *** * * ***** * * * *** * * * * *** ** ** ** ** ** *** *** ** *** * ** * ** ** **
* *** ** * ** * * * ** * ** ** * *** * *** * ******** ** ** * ***
*** * ** *** * ** **** ***** **
* ** * ***** * *** *
******* *** * ** *** * *
* ******** ** ** * * ** 0;

}



int compare(int a, int b){
* ** * ** * * ** ***** *
* * * ***** *** * * * < b)
* ** ** ** **** *** * **** * ** * * * ** 1;
* * * * * *** * ** * * if(a > b)
* *** * ** * **** * * ** *** * * * * * ** * * ** 2;
** ** ** * * * ** ** *** ***
* * ** *** * ** * * ***** *** * ****** ** ***** 0;

}
answered by (-188 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

int main()

{

    int day,day2,month,month2,year,year2;


* ** ** ** ** ** * * * * * * ** * * * ********** * * *** *
**** * ** *** * *** * *** *** ** * * ** * **** * ** ** ****
* * * **** *** * ****** * * *

    {
**** **** * **** * **** **** **** *** ******* * *** * is earlier than %d/%d/%d",day2,month2,year2,day,month,year);

    }

    else if(year<year2)

    {
** * * ** *** * * * **** * * * * *** * * * * * * * ** ** is earlier than %d/%d/%d",day,month,year,day2,month2,year2);

    }

    else

    {
** **** * ** * *** **** ** ** * ****** ** *** ** * **** *
*** ** ** * ** * *** * * * *** ** ** **** * *
* * ** * *** *** * * * * *** ** *** * * ** ** ***** ** * * * * ** * * * is earlier than ** * * **** * * * * ****** **
** * * * * * *********** *** * * *** *
* * * ** * ** * ** ** *** * ** **** ** ** * if(month2>month)
* * * * *** ***** *** * * ** * * * ***** **
******* ** * * * *** * * ** * * ** * ***** * * * ***** * *** * *** is earlier than %d/%d/%d",day,month,year,day2,month2,year2);
*** ******* * * ** * **** ** ** * * **
** * *** * * * *** **** * **** *** * ** *
*** ** ** ** *** * ****** *** ** ***
* * ******* * * * * ******* ******* ***** * * * * * ***** * ****** * ** *
** * ** * * * * * * * *** ** *** * * * * ** * * ***
**** *** *** ***** **** * *** ** ***** * ** * * ** * * * * ** *** * ***** *** ** * * *** * ** * * ******** is earlier than **** * * * * ***** *** ****
** * * ***** *** * ***** *** ** * * *** * * * ** *** *
* * ** * * ******** * * * **** * **** **** **** **** ** **** *** ** * if(day2>day)
* ** * ** * ***** * * * * ** ** * * * ** * ** **
*** * * * * ** **** * * * ** * * *** ** ** * * *** * ** ** * ***** * * * * *** *** ** * * ** * * ****** is earlier than ***** * ** * ***** * *** * * *
*** ** * * ** * * ****** *** * * ** * * * * ** * ***** * * * * *** **** *
* ** * **** * * * ***** * ** * * * * * * * * * * ** **** *
* * *** ** *** ** *** *** ** ** ** ** ** **** *** ** * * *** * *
** **** ******** * * ******* * *** * ** * * * **** ** *** * * ** * *** ***** ***** ** day!");
** * ** **** * ** * * ** * ******** * *** *** * * * ** *** * ** **
* ** *** *** * *** ** * * * * ** *

    }

}
answered by (-366 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main(void)

{
*** * ** * * * * *** * m1, m2, d1, d2, y1, y2;
* ** * **** ********* * * ***** *** * * ** &m1, &d1, &y1);
* * * * ** ******* * * * **** * * &m2, &d2, &y2);


* * * *** *** * * (y1<y2)
** * * *** ** **** ***** * * * ** ** ** *** ** is earlier than *** * * ** ** * d1, y1, m2, d2, y2);
** ** * ** ** * ** * *** if (y1==y2)
* *** ** * ***** ***** *
* * ** ** ***** * * * * * * * ** *** ** * (m1<m2)
*** * **** ** * * *** * * * * ** ** ** * ** * ** ** **** ***** * * * * ** * is earlier than ** * * ***** d1, y1, m2, d2, y2);
** * ** * **** ** * * ** ** ** **** * *** * if (m1==m2)
* * * * * ****** ** ** ******* ********** * *
******* * * * ** **** **** ** * *** ** ** * ** * ******** (d1<d2)
*** * *** ** * * * ***** * * * * *** *** * ** ** * ** **** * * * * * **** * *** * * * is earlier than %d/%d/%.2d\n",m1, d1, y1, m2, d2, y2);
******* * ** * **** *** * * * * *** **** ** *** ** * * * * ** ***** if (d1>d2)
*** *** *** * ** ** ***** ** * *** * ** * * * ** ** * *** *** * *** ** * * ** * * * * *** is earlier than ** * ** * **** d2, y2, m1, d1, y1);
*** * ** ** ** * * * * * * * * ******* ***** **** * *********** * *
* **** *** ***** * ** * * ** * *** * ** ** ** *** * ****** * ** * * * ** * * *** * * * * *** * * * * day!");
**** * ** * *** * * * ** * * ** *** * ** *
* * ** * * *** ***** * ** * * ** *** *
* **** ** * * **** ** *** * ** ** ***** * * *** ******** *** ** ** ** * ***** * * is earlier than %d/%d/%.2d\n",m2, d2, y2, m1, d1, y1);
* * * ** **** * *
* ** * * *** ** * * * *
* *** * **** * *** ** ** *** **** * * * **** ** ** is earlier than %d/%d/%.2d\n",m2, d2, y2, m1, d1, y1);


* **** * * * * * * 0;

}
answered by (-215 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

int main()

{
* ******* *** ******* ** a1, a2, a3, b1, b2, b3;
* ******* * ******** ** flag=0;


**** * * * * * * *** * *** **** * *** * &a1, &a2, &a3);
* * ** *** * ** * **** *** *** *** ** ** &b1, &b2, &b3);


* ** ****** *** * *
***** ** ** *
****** * * ** * ** ** * *** * * * **** * ** ** * *

    }
* * ** * ** * * * if(a3==b3)
* *** *** * * * ***** *
** ** * * * ** ******* * * ** * ** *** *** * ** * *
* *** ***** * * ** ******* ****** *** *** ** * * *
** * ********* * * ** ** * ****** ** * * *** * *** *** *** **
** *** **** ** ***** * *** * * ** *** * * *
** ** * * ** **** **** ** *** * * * * if(a1==b1)
* ** * *** ** * * * * ** *** ***** * *
****** * ** * ** ** * * * **** *** **** * * * * * * * ** ** ** * **** *
* * * * * *** **** **** **** * * * * * ** ****** ** **
* * *** **** * * * * *** * * ***** * * * ** *** ** **** * ** *** * ** * **** ** * *
* * *** * ** * *** ** * ** ** * ** ** ** **** * ******* *** ***** ****
* *** *** * ***** * * * *** ** *** ******** * * ** * *** *** * * if(a2==b2)
***** ** * * ** * * * * * * ** * * * * ** * * * * *
* * ** * * * *** * * * * * * *** * ** * * **** *** * ** * * ** ** ** * ** * * ****** * ** ****
** **** *** ** * * * ** *** * ** **** ** * *** ** ** * **
* * *** * * * *** * * *** * *** *** * * *** * **

    }






* *** * ** *** * ** * **

    {
** ** ** * **** * ** ** **** * * * * * ***** * ** ** is earlier than %d/%d/%d", b1, b2, b3, a1, a2, a3);

    }
*** * * * * * ** * **** ** if(flag==2)

    {
* ** * **** * ** * * *** **** * **** * *** *** *** day!");

    }
**** * ** * * *** ***** *

    {
* * * * ***** * * **** **** ** * * ** ** * ** * is earlier than %d/%d/%d", a1, a2, a3, b1, b2, b3);
*** * ** *** * ***** **


* * *** ** * * * * * ** 0;



}
answered by (-368 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

int main()

{
** ** ** * * ** * * a1, a2, a3, b1, b2, b3;
* * * *** * ** * ** * flag=0;


** * * ** * * ***** * ** * ** * * ***** ** * ** &a1, &a2, &a3);
** * * ** *** * ** * **** * * * * * ***** ** * &b1, &b2, &b3);


** **** ** ** * ** * * ** * * * ***
* * **** **** ** *
** * ** * *** ***** ** * * ** * * * ** ** *

    }
* * * *** * *** *** if(a3==b3)
* **** ** * * * * * ***
* *** * * * *** *** * * * * * ** ***** * * * ** **** *
*** * * ***** ** * ** * * ** *** * *
*** * * * *** ** ******** ***** ** * * * ** * * **** *****
* ** * * * * ** * * ** * *** *** ***
** * ** * * * ** **** * * ** * *** ** * * if(a1==b1)
* *** ** *** ** *** ** **** * ***** *** ** ** *
* * ***** ** * * ******** **** ** * * * * * * ** * ** * **** *
***** *** * * ** **** ** ***** ** * *** *** **** ***** ***** **
* * ** * * *** * * *** * * **** ** ** *** * *** ***** *** ** * ** *** ** *****
*** * *** * ***** *** * * *** *** * ** * * * * *** * * * * **
*** ** ** ****** ** * * *** * * * * **** * * * ** * ** ** * if(a2==b2)
* * *** * * * ** *** * * * ***** ******* ** ********* ** **
* ** ** * * *** * * ** * * * * *** * * * ******* ** ***** **** * * * ** * * * * * *
* * * ******* ** * * ***** *** * ** ** * ** * ** **** ** * ** * *
* * ** *** ***** ***** *** *** * ** * * * **

    }






****** * * * * ** * ** * ** *

    {
* * * * ** * * * *** * ** * ** * * * **** ** is earlier than %d/%d/%d", m1, m2, m3, n1, n2, n3);

    }
* * ** ** * * * *** ** if(flag==2)

    {
** ** ** * *** * * *** ** ** ***** * * **** * * day!");

    }
* * * * *** **** * * *

    {
****** ** * *** ** * * ** *** **** ******* * ** **** * is earlier than %d/%d/%d", n1, n2, n3, m1, m2, m3);
*** **** * ** ** ** * ***


* * * * * ** ** * * * 0;



}
answered by (-368 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

int main()

{
* * * *** ** * ** ***** a1, a2, a3, b1, b2, b3;
* * *** * * * * * **** * flag=0;


*** ** *** * * * *** ****** * * * * ** ** &a1, &a2, &a3);
* **** * ** ******* ** * * * ***** &b1, &b2, &b3);


* ********* * ** **** *** ******
* **** * ** * * * * *
* ** ** *** * * * **** * ** *** ** * *** *** * *** *
** **** ** *** ** ***** *
** * * ** ***** * * if(a3==b3)
***** *** * ******** ***
***** * * ** ***** * * * ** *** *** * * ** *
** * * * * ** ** ****** **** ***
* * ** ** ** * *** ******* * *** * * * ***** * ** * * ** * * ** *
*** * **** * * * ***** ** **** ** ** ** *
*** **** * * * * * *** * ***** * **** ** ** ** if(a1==b1)
** * ** * ***** ** * * * * ** * ***** * ** *
* ** * ** * ** **** * * **** ** * * *** *** * ** * *** *
* * ** *** * * * ** * *** **** ** * * * * * *** * ** * * ****** * * ***
* * * ** ** *** * *** *** * * * * * * * * ** ** * **** ** * * ** * *** **
** * * ** * * * * ** *** *** * * * * * * *
*** ** * * **** *** * * ********* ** ***** ** * * **** * ***** if(a2==b2)
** ** ** ** **** * ****** * * *** * * * * ******* **** ** ** ** * *
** ** ** * *** ****** ** * ** ** ** ** * ** * ** *** * **** * ****** * * * * *
**** * * * * ** *** *********** ****** * * * * * * ** * * * * **
* * * *** * * * * * ****** ** ***** * ** * *

    }






***** *** * *** * * * * ****
*** * *** **** * ****
* *** ** * * **** *** * * * *** *** * **** *** a2, a3, b1, b2, b3));
** * *** ** ********** *
*** * ** * ** ** *** * if(flag==2)
*** * * *** **** ***** ***
* * * *** * ***** * *** **** ** ***** ** *** ** * * * ***** * day!");
** * ** ****** * * **
** * * ** * ** * ***** * *

    {
***** * * ** *** * **** *** * *** *** * *** * ** * * * a2, a3, b1, b2, b3));

    }


* * *** * * ** ** **** 0;



}



int first_is_early(int n1, int n2, int n3, int m1, int m2, int m3)

{
* * ** ** * * *** ** * ** ** is earlier than %d/%d/%d", m1, m2, m3, n1, n2, n3);

}

int second_is_early(int n1, int n2, int n3, int m1, int m2, int m3)

{
* * * * * * * * **** *** * ***** *** * is earlier than %d/%d/%d", n1, n2, n3, m1, m2, m3);

}
answered by (-368 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

int main()

{
*** *** **** ** ** a1, a2, a3, b1, b2, b3;
* *** ** * * *** flag=0;


** * * **** *** * * ** * ** * * &a1, &a2, &a3);
** * * * *** ** * *** * *** * * * * * * &b1, &b2, &b3);


* * * ** ** * ** *** ** * * * *
** * * ** *** **** * * *
** * ** * ** * **** *** ** * * **** ** ****** *
* ** * * *** **** * ***
* * ***** ****** * * * if(a3==b3)
* ** ** * **** *** * *
* ******* * **** ** * * ***** * ** * * * **
*** ** * * * *** **** * * * ** ** * * * *** **
***** ** ** * ** * * * * *** *** * * ** * *** ** * * ******* *
** * * * **** *** * * * ** * * * *** ** * *
** ** * ***** * *** ** * ** * ** ** * ** * if(a1==b1)
** *** * ** *** * ** * * * *** **** * ******* *
* * ** * ** * **** * *** *** * **** * **** * * * ** * **** * * ****
* **** ***** *** * * * *** * * *** * * * *** * * * * ****** ***
* ** * * ** * ****** ** * * ****** ***** ** ** * * * *** * * ** * * * ** * *** * *
** ** * ** *** * * ** * ** * * * * * * * * *** * * * ** ** *
* *** ** ** ** **** ** * ***** * * * ** **** * ** if(a2==b2)
* **** ** **** *** * ** * *** **** * *** * **** ** * ** * * *
* * * ** ** ** ** ****** * ** ** * ** ** * * * * ** *** ** * * * *** ** * * * ***** *** **
* * * * *** * * * ** *** * ** * * *** ** * * *** **** *
* ** * *** ** * ** * *** *** * * * * * * *

    }






** * * * ** ** *** ** *****
* **** * *** * **
* * ** ** * * ******* ***** * * * ** ** ** * * ***** ** a2, a3, b1, b2, b3));
*** ** * ** * * * **
* * * ** ***** * ** *** **** if(flag=2)
* * * * *** * * **
* * ** ****** * * ** * * * **** ******** ** **** ** **** * * day!");
* *** ** * ** ******
* * ****** * ** * **

    {
** * * * ** * * ***** ** * * *** * * * * ** *** ** ** * * a2, a3, b1, b2, b3));

    }


** * * * *** ** **** * * 0;



}



void first_is_early(int a1, int a2, int a3, int b1, int b2, int b3)

{
** * *** *** * ** *** * *** * * is earlier than %d/%d/%d", b1, b2, b3, a1, a2, a3);

}

void second_is_early(int a1, int a2, int a3, int b1, int b2, int b3)

{
***** * **** *** * *** **** * * ** * is earlier than %d/%d/%d", a1, a2, a3, b1, b2, b3);

}
answered by (-368 points)
0 like 0 dislike
Hidden content!
#include ** * ** ** ** *

int main (void)

{
* * * **** * * ** *** * * * * ** dd, yyyy, mm2, dd2, yyyy2;
** * ** * * * *** *** * * * * * ** * * * * **** ** ****
* ** * * ***** * ** * ********* * * * * * * * * * *****
* * ** *** * * * * ** *
* *** * *** * ******* (yyyy < yyyy2)
* ** * *** * * *** * * *
** * ** * * * * ******* ******* * * *** **** ** ***** is earlier than *** *** mm, dd, yyyy, mm2, dd2, yyyy2);
* **** ** ******
* ** * * **** ** *** ** if (yyyy > yyyy2)
* ** * * * ** *
** * * ** * * * *** * ** ** * * **** * * * *** is earlier than * ** ***** mm2, dd2, yyyy2, mm, dd, yyyy);
**** * ** * ** *** ** *
* * ** * * ** ** *** * * if (yyyy == yyyy2 ***** *** mm < mm2)
* ****** * ** ** * * *** **
** ** ** * * * * *** * ** * * *** * *** ** * ** * * ** *** is earlier than ** ** ***** ** mm, dd, yyyy, mm2, dd2, yyyy2);
* * ** * **
*** * * ** ** * * ** if (yyyy == yyyy2 * * * ** **** mm * *** mm2)
* *** * ** *** ****
** ** * * * ** * ** ** * ** * ******* ** * * * ** *** * ** is earlier than ** *** * * ** ** mm2, dd2, yyyy2, mm, dd, yyyy);
* * ** * **** ** * **
** **** ** * ** *** ** * if (dd < dd2)
* ** * * ** * * * *
* ** ** * ** * * ** ***** * ** * * * ** **** * * * ****** * is earlier than * * ***** mm, dd, yyyy, mm2, dd2, yyyy2);
* **** * ****** **** * *
* * * ** ** * ** *** ** if (dd2 > dd)
* ** ** * **** **** ** *
** ****** ** ***** * *** * * ** * *** * * ***** **** * * is earlier than * ** **** mm2, dd2, yyyy2, mm, dd, yyyy);
**** * * * ** ** *
**** *** **** * * ****
* * ** *** * * * *
** * ** ***** ** ** ** **** * * ** * * ***** ** ***** ***** ***
** **** ** *** * *****
** ** * ** * *** ** ** * ** 0;

}
answered by (6 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

int main(void)

{
** * **** ***** ** * *** m1, m2, d1, d2, y1, y2;
* * * ** * * * * * * * * *** * ** &m1, &d1, &y1);
* * **** ** * * ****** ** * * ** *** ** &m2, &d2, &y2);


* ** * * ** * * * * (y1<y2)
*** * ** * ** * * **** * ** *** ** ** * * *** * ** * is earlier than * * * ** * ** d1, y1, m2, d2, y2);
******** * *** * **** * ** * if (y1==y2)
*** ***** * ** * ** * *
* **** *** * *** ** **** *** * **** ** ** *** (m1<m2)
* ** ***** * * * ** ** ** ***** * * * * * ***** * * ** *** ** *** * ** * * * *** * is earlier than *** * * d1, y1, m2, d2, y2);
** *** ** * ** ** * ** ** ** * ** * * *** * if (m1==m2)
*** * * *** **** ** * ** ***** ** ** * *
** * *** *** * * * ** ** * * **** ** * * ** ** * ** * * * * *** * (d1<d2)
** ** * *** * * * * * * * *** *** ** * ***** * * * ** * * * * ** ****** * * * * ** * is earlier than %d/%d/%.2d\n",m1, d1, y1, m2, d2, y2);
* * ** * * ** *** * *** ** * **** **** * * * * * * ** * ** if (d1>d2)
*** * **** ** ** **** * * * ***** ** * **** **** * **** * ** *** *** ***** ** *** *** * * ***** is earlier than * * * ***** d2, y2, m1, d1, y1);
* * ** ** * * ** * *** *** * * ** * ** * * *** ** * ****** ***
** * * *** ** ** * * **** * ** ** * * * * * ** ***** * * ** *** * * * *** *** * ** ** * * day!");
* ***** * * **** ** ** *** *** * ** ***
* *** ** * *** ** *** *** ** ******* * **** **
**** ***** * * * * **** *** * * ** *** * * * * ** *** * ** ** * * ** ** ** is earlier than %d/%d/%.2d\n",m2, d2, y2, m1, d1, y1);
* ***** *** * * * * *
* ** * * * ***** *
** * **** *** * * * ** * *** ** ** ** **** ** **** * * is earlier than %d/%d/%.2d\n",m2, d2, y2, m1, d1, y1);


* * * * **** * **** *** ** * * 0;

}
answered by (126 points)
0 like 0 dislike
Hidden content!
#include * * **** * *



int main()

{
** * * * * * * * ** month, day, year, month2, day2, year2;


* ** * * ** * ***** * * * ** Date in m/d/yyyy * ** ** * ***
** * * ** ** * *** * ** ** * * &month, &day, &year);


*** * *** * ***** * * * * ***** * ** Date to be compared, same * ***** *
*** * ** * *** * *** **** * *** &month2, &day2, ******* *


** *** **** ***** ** * * * * ** ** * *** month, day, year);
* * * ** ** ** ***** * *** * *** ** * * * * ** *** month2, day2, year2);


* ** *** *** ***** *** * * ** **** **** * * * * ** * *
* ** ** **** * * * * ** * *** * *** **** * ** * **** **** **** * *** * **** *** ** ***** * is earlier than ** * month, day, year, month2, day2, year2);
**** * * ** * ** ** * * ** ** * *** * * ** * if * **** **
* **** * *** **** * ** ** ** ** *** * ** * ** * ** * * * * * * ** * * ** * ** **** ** * * ** * * *** **** is earlier than * * * month2, day2, year2, month, day, year);
*** ** ** * ** ** * * ** * **** ***** * * if (year==year2 **** ** * *** ** **
***** * * * * * * * * * * ** *** **** **** * ** * * * * * * ** * * * *** * *** ***** * *** * * is earlier than ****** * * month, day, year, month2, day2, year2);
*** ** * * *** * *** * ** * * ** *** ** if (year2==year ******* * * **** ****
** ** * * ** * * *** * * *** * * * * ** * * * ** * ***** ** * * ****** ** ** ** * ** * **** ** ** *** *** ** ** * is earlier than * *** ** month2, day2, year2, month, day, year);
* * * * * * ** *** * * * **** * * * **** * * if (year==year2 * * ** month==month2 * * ** ** * ** *
* * * ** ** * * * ** **** *** * ** *** * ** * * **** ********* ***** *** ** *** ****** * * ******* is earlier than * * * * month, day, year, month2, day2, year2);
*** * * * * * * * * * ** * * * * * if (year2==year ** ** ** * month2==month *** ** * *
* ** ** * * ** * * *** *** *** * * * *** * * *** ******* ** * * * ** *** * *** ********* ** ** *** is earlier than * **** * * * *** month2, day2, year2, month, day, year);
**** * *** * ** *** * *** ** * * ** * ** *
* * * *** * ** ** * ** ** ** * * * * ** ** * ***** ***** **** * * * * ***** * * * * ** ** ** ** * * *


** * *** ** * * **** *** * ** 0;

}
answered by (126 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:104.23.197.95
©2016-2026

Related questions

0 like 0 dislike
50 answers
[Exercise] Coding (C) - asked Mar 16, 2017 in C
ID: 22973 - Available when: Unlimited - Due to: Unlimited
| 7.1k views
0 like 0 dislike
82 answers
[Exercise] Coding (C) - asked Mar 9, 2017 in C by thopd (12.1k points)
ID: 22674 - Available when: Unlimited - Due to: Unlimited
| 10.1k views
0 like 0 dislike
111 answers
asked Mar 16, 2017 in C by thopd (12.1k points) | 15.1k views
12,783 questions
183,442 answers
172,219 comments
4,824 users