From befb7c767cf1eaa0a176949999d935bf05c3c5ac Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Fri, 3 Apr 2020 00:11:17 +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 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/du4/program.c b/du4/program.c index ffb2624..9e73590 100644 --- a/du4/program.c +++ b/du4/program.c @@ -52,8 +52,6 @@ double compare_percent(double a, double b, double eps) int main() { char str[100][100]; - char b; - int quan =1; for(int i =0;fgets(str[i],100,stdin);i++){ if(str[i][0]=='\n'){ break; @@ -65,7 +63,7 @@ int main() sscanf(new_str,"%lf%c%lf%s%lf",&first,&c,&second,ravno,&res); - if(c=='E'||first==-5||second==-5||res==-5||(c!=43&&c!=42&&c!=45&&c!=47||(strlen(ravno)==1&&ravno[0]=='=')){ + if(c=='E'||first==-5||second==-5||res==-5||(c!=43&&c!=42&&c!=45&&c!=47||(strlen(ravno)==1&&ravno[0]=='='))){ printf("CHYBA\n"); continue; }