This commit is contained in:
Bohdan Kapliuk 2024-03-28 22:32:30 +02:00
parent 119fa67503
commit 29bfe53a8d

View File

@ -40,10 +40,10 @@ int main(){
printf("CHYBA\n"); printf("CHYBA\n");
return 0; return 0;
} }
double r1 = (round(funkcia->x*100) + round(funkcia->y*100))/100; double r1 = (round(funkcia->x*100) + round(funkcia->y*10))/10;
double r2 = (round(funkcia->x*100) - round(funkcia->y*100))/100; double r2 = (round(funkcia->x*100) - round(funkcia->y*10))/10;
double r3 = (round(funkcia->x*100) * round(funkcia->y*100))/100; double r3 = (round(funkcia->x*100) * round(funkcia->y*10))/10;
double r4 = (round(funkcia->x*100) / round(funkcia->y*100))/100; double r4 = (round(funkcia->x*100) / round(funkcia->y*10))/10;
if(funkcia->result != r1 && funkcia->result != r2 && funkcia->result != r3 && funkcia->result != r4){ if(funkcia->result != r1 && funkcia->result != r2 && funkcia->result != r3 && funkcia->result != r4){
printf("ZLE\n"); printf("ZLE\n");
return 0; return 0;