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

This commit is contained in:
Oleksandr Hryshchenko 2021-03-18 18:03:40 +00:00
parent cd988d1af1
commit 8de28a8dca

View File

@ -25,13 +25,13 @@ for (int j = 0; fgets(input, 11, stdin) != NULL; j++){
else {
date[counter2++] = (int) strtol(numbers, &ptr, 10);
if(counter2 == 1 && (date[0] < 1 || date[0] > 31)){
goto LABEL;
//goto LABEL;
}
else if(counter2 == 2 && (date[1] < 1 || date[1] > 12)){
goto LABEL;
//goto LABEL;
}
else if(counter2 == 2 && date[0] > 29){
goto LABEL;
//goto LABEL;
}
else if (counter2 == 3){
date[0] += 7;