du3
This commit is contained in:
parent
6e969b7e3e
commit
ba0642ed15
@ -90,8 +90,10 @@ int main() {
|
||||
cislo = a / b;
|
||||
}
|
||||
|
||||
float zaoblenie = round(cislo * 100) / 100.0;
|
||||
|
||||
// porovnanie s toleranciou
|
||||
if (fabs(cislo - c) <= 0.001) {
|
||||
if (fabs(zaoblenie - c) <= 0.001) {
|
||||
printf("OK\n");
|
||||
} else {
|
||||
printf("ZLE\n");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user