Изменить 'du3/program.c'
This commit is contained in:
parent
9a061c8842
commit
b5e0e1b8ba
@ -9,6 +9,7 @@ scanf("%s",str);
|
|||||||
int day=0;
|
int day=0;
|
||||||
int m=0;
|
int m=0;
|
||||||
int y=0;
|
int y=0;
|
||||||
|
int z=0;
|
||||||
sscanf(str, "%d.%d.%d", &day, &m, &y);
|
sscanf(str, "%d.%d.%d", &day, &m, &y);
|
||||||
if(y%400==0 ||(y%100!=0 && y%4==0)){
|
if(y%400==0 ||(y%100!=0 && y%4==0)){
|
||||||
z++;
|
z++;
|
||||||
|
Loading…
Reference in New Issue
Block a user