Изменить 'du3/program.c'
This commit is contained in:
parent
cd988d1af1
commit
8de28a8dca
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user