From 83797604ffd5b7557e86eba82ef9e7026535c442 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Sun, 27 Mar 2022 19:42:12 +0200 Subject: [PATCH] aaa --- a1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index 172a2b8..fbe1a87 100644 --- a/a1/program.c +++ b/a1/program.c @@ -24,7 +24,7 @@ int main(){ Dnes_Datum[id]='\0'; for(int i=0;i='0'&&Dnes_Datum[i]<='9')||Dnes_Datum[i]==' '); + if((Dnes_Datum[i]>='0'&&Dnes_Datum[i]<='9')||Dnes_Datum[i]==' '||Dnes_Datum[i]=='\n'); else { printf("Neplatny datum.\n"); return EXIT_SUCCESS;