Изменил(а) на 'a1/program.c'
This commit is contained in:
parent
d07b99dbd0
commit
dc26880ed5
13
a1/program.c
13
a1/program.c
@ -33,16 +33,25 @@ int main() {
|
||||
} else {
|
||||
if (counter == 0) {
|
||||
dd = cislo;
|
||||
if(dd == 0){
|
||||
che = 1;
|
||||
}
|
||||
} else if (counter == 1) {
|
||||
mm = cislo;
|
||||
mm = cislo;
|
||||
if(mm == 0){
|
||||
che = 1;
|
||||
}
|
||||
} else if (counter == 2) {
|
||||
yyyy = cislo;
|
||||
if(yyyy == 0){
|
||||
che = 1;
|
||||
}
|
||||
}
|
||||
counter++;
|
||||
zaciatok_cisla = koniec_cisla + 1;
|
||||
}
|
||||
}
|
||||
if(counter != 3){
|
||||
if(counter != 3 || che == 1){
|
||||
printf("Neplatny datum.\n");
|
||||
che = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user