diff --git a/a1/program.c b/a1/program.c index 6b652c7..a24d37e 100644 --- a/a1/program.c +++ b/a1/program.c @@ -41,6 +41,10 @@ int main() { zaciatok_cisla = koniec_cisla + 1; } } + if(counter != 3){ + printf("Neplatny datum.\n"); + break; + } //printf("%d %d %d\n", dd, mm, yyyy); time_t t = time(NULL); struct tm *tm_date = localtime(&t);