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

This commit is contained in:
Oleksandr Hryshchenko 2021-03-18 18:48:12 +00:00
parent e6e9367597
commit 86c2930073

View File

@ -37,7 +37,10 @@ int main() {
//goto LABEL;
}*/
else if (counter2 == 3){
if(date[2] <1) goto LABEL;
if(date[2] <1){
puts("Neplatny datum.");
goto LABEL;
}
date[0] += 7;
if(date[0] > 31 && (date[1] == 1 || date[1] == 3 || date[1] == 5 || date[1] == 7 || date[1] == 8 || date[1] == 10 || date[1] == 12)){
date[0] -= 31;