Изменить 'du3/program.c'

This commit is contained in:
Oleksandr Hryshchenko 2021-03-18 18:42:23 +00:00
parent 1776564e2d
commit cb090b10de

View File

@ -25,9 +25,11 @@ int main() {
else {
date[counter2++] = (int) strtol(numbers, &ptr, 10);
if(counter2 == 1 && (date[0] < 1 || date[0] > 31)){
puts("Neplatny datum.");
goto LABEL;
}
else if(counter2 == 2 && (date[1] < 1 || date[1] > 12)){
puts("Neplatny datum.");
goto LABEL;
}
/*else if(counter2 == 2 && date[0] > 29){