Изменить 'du4/program.c'

This commit is contained in:
Pavlo Tverdyi 2020-04-01 10:19:18 +00:00
parent 8d81263887
commit 4273744aef

View File

@ -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");
}