From 72fc100235cd0dc62928c73ca6cd68d1a503af03 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Fri, 3 Apr 2020 00:06:25 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Edu4/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du4/program.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/du4/program.c b/du4/program.c index dcc844c..00a1dba 100644 --- a/du4/program.c +++ b/du4/program.c @@ -52,8 +52,12 @@ double compare_percent(double a, double b, double eps) int main() { char str[100][100]; - char b ; + char b; + int quan =1; for(int i =0;fgets(str[i],100,stdin);i++){ + if(str[i][0]=='\n'){ + break; + } char *new_str = compactString(str[i],strlen(str[i])); double first =-5,second =-5,res=-5; char c='E'; @@ -70,8 +74,9 @@ int main() } else{ printf("ZLE\n"); - } + } } + return 0; } \ No newline at end of file