Изменить 'du3/program.c'
This commit is contained in:
parent
978b312ba3
commit
fc1ca7eead
@ -24,7 +24,7 @@ if(m==2){
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(m>12 || y<0){
|
if(m>12 || y<0 || m<=0 || day<=0){
|
||||||
printf("Nespravny datum\n");
|
printf("Nespravny datum\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user