Изменить 'du3/program.c'
This commit is contained in:
parent
5e90136b4b
commit
0719a60c64
@ -41,6 +41,10 @@ int main() {
|
||||
puts("Neplatny datum.");
|
||||
goto LABEL;
|
||||
}
|
||||
if(date[0] >= 29 && date[1] == 2 && date[2] % 4 != 0 && (date[2] % 100 == 0 || (date[2] % 100 == 0 && date[2] % 400 != 0))){
|
||||
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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user