From 5e2ae48e8a76677e283798baafd6c3a36b766830 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Sun, 27 Mar 2022 15:12:07 +0200 Subject: [PATCH] aaa --- du4/program.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/du4/program.c b/du4/program.c index 25face0..fbc8e67 100644 --- a/du4/program.c +++ b/du4/program.c @@ -4,10 +4,14 @@ int main(){ int ch=getchar(); - char priklad[100]; - for(int idx=0;ch!='\n'&&ch!=EOF;idx++){ + char priklad[300]; + + for(int idx=0;1;idx++){ priklad[idx]=ch; ch=getchar(); + /*if(priklad[idx]!='\n'&&ch){ + break; + }*/ } char *start=priklad, *end=NULL; @@ -48,7 +52,7 @@ int main(){ } if (vysledok2-vysledok < 0.001 && vysledok2-vysledok > -0.001){ - printf("OK\n"); + printf("OK1\n"); } else{ printf("ZLE\n");