add
This commit is contained in:
parent
88d221f6bc
commit
16e24fe16a
@ -30,7 +30,7 @@ int main(){
|
||||
int d1,d2,d3;
|
||||
int res=sscanf(start,"%d %d %d",&d1,&d2,&d3);
|
||||
|
||||
if(res!=3||d1<=0||d2<=0||d2>12||d3<1900||d3>2030){
|
||||
if(res!=3||d1<=0||d2<=0||d2>12||d3<1900||d3>2100){
|
||||
printf("Neplatny datum.\n");
|
||||
while((*start)!='\n')start++;
|
||||
start++;
|
||||
|
Loading…
Reference in New Issue
Block a user