Изменил(а) на 'a1/program.c'
This commit is contained in:
parent
f57f9b7470
commit
7509cf055c
@ -30,8 +30,7 @@ int main() {
|
|||||||
if(znaky[i] == '.'){
|
if(znaky[i] == '.'){
|
||||||
toc++;
|
toc++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//printf("-->%d\n", toc);
|
|
||||||
if(toc != 2){
|
if(toc != 2){
|
||||||
che = 1;
|
che = 1;
|
||||||
}
|
}
|
||||||
@ -62,10 +61,10 @@ int main() {
|
|||||||
che = 1;
|
che = 1;
|
||||||
}
|
}
|
||||||
if(yyyy % 100 != 0 && yyyy % 4 == 0){
|
if(yyyy % 100 != 0 && yyyy % 4 == 0){
|
||||||
count++;
|
count = 1;
|
||||||
}
|
}
|
||||||
if(yyyy % 400 == 0){
|
if(yyyy % 400 == 0){
|
||||||
count++;
|
count = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
counter++;
|
counter++;
|
||||||
@ -76,6 +75,7 @@ int main() {
|
|||||||
//printf("--->>>%d\n", count);
|
//printf("--->>>%d\n", count);
|
||||||
che = 1;
|
che = 1;
|
||||||
}
|
}
|
||||||
|
count = 0;
|
||||||
if(counter != 3 || che == 1){
|
if(counter != 3 || che == 1){
|
||||||
printf("Neplatny datum.\n");
|
printf("Neplatny datum.\n");
|
||||||
che = 1;
|
che = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user