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

This commit is contained in:
Pavlo Tverdyi 2020-03-31 19:11:02 +00:00
parent aa4ee99437
commit fbbbbb584a

View File

@ -21,10 +21,7 @@ int call( double A, double B, double C, char AC){
return printf("ZLE\n"); return printf("ZLE\n");
} }
if(AC=='/'){ if(AC=='/'){
double Cc=A/B; if(A/B==C || cC==C)return printf("OK\n");
Cc=(int)(Cc*100000);
Cc=(float)Cc/100000;
if(Cc==C || A/B==C || cC==C)return printf("OK\n");
return printf("ZLE\n"); return printf("ZLE\n");
} }
return printf("CHYBA\n"); return printf("CHYBA\n");