From c78c1c0e2f06d4e732ac326e1c05e778302cff58 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Wed, 1 Apr 2020 09:33:46 +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, 5 deletions(-) diff --git a/du4/program.c b/du4/program.c index 1ab1049..7549de4 100644 --- a/du4/program.c +++ b/du4/program.c @@ -5,24 +5,19 @@ char add(double A, double B, double C,char AC){ if(A+B==C)return printf("OK\n"); - printf("%lf",A+B); return printf("ZLE\n"); } char subtr(double A, double B, double C,char AC){ if(A-B==C)return printf("OK\n"); - printf("%lf",A-B); return printf("ZLE\n"); } char multi(double A, double B, double C,char AC){ if(A*B==C)return printf("OK\n"); - printf("%lf",A*B); return printf("ZLE\n"); } char divi(double A, double B, double C,char AC){ float CC=A/B; - printf("%f",CC); if(CC==C || A/B==C)return printf("OK\n"); - printf("%lf",A/B); return printf("ZLE\n"); }