Изменить 'du4/program.c'
This commit is contained in:
parent
8d81263887
commit
4273744aef
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user