From fbbbbb584a32647317852aa087ceb9d45fe0699e Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Tue, 31 Mar 2020 19:11:02 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'du4/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du4/program.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/du4/program.c b/du4/program.c index ed5a8fa..948a32e 100644 --- a/du4/program.c +++ b/du4/program.c @@ -21,10 +21,7 @@ int call( double A, double B, double C, char AC){ return printf("ZLE\n"); } if(AC=='/'){ - double Cc=A/B; - Cc=(int)(Cc*100000); - Cc=(float)Cc/100000; - if(Cc==C || A/B==C || cC==C)return printf("OK\n"); + if(A/B==C || cC==C)return printf("OK\n"); return printf("ZLE\n"); } return printf("CHYBA\n");