diff --git a/du4/program.c b/du4/program.c index 8df0f6e..67e39fb 100644 --- a/du4/program.c +++ b/du4/program.c @@ -18,8 +18,8 @@ char multi(double A, double B, double C,char AC){ } char divi(double A, double B, double C,char AC){ float CC=A/B; - long double CCC=A/B; - if(CC==C || A/B==C)return printf("OK\n"); + double Cc=(int)((A/B)*100000); + if(CC==C || A/B==C || Cc==(int)(C*100000))return printf("OK\n"); return printf("ZLE\n"); }