From 08f883d31b2225049954cf1be879aa99becef347 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 2 Apr 2020 16:08:24 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du4/program.c b/du4/program.c index f5f403d..70a1e3d 100644 --- a/du4/program.c +++ b/du4/program.c @@ -25,7 +25,7 @@ void multi(double a, double b, double c,char ac, int result[],int count){ void divi(double a, double b, double c,char ac, int result[],int count){ float cc=a/b; double Cc=(int)((a/b)*100000); - if(Cc==c || a/b==c || cc==(int)(c*100000)) result[count]=1; + if(cc==c || a/b==c || Cc==(int)(c*100000)) result[count]=1; else result[count]=2; }