This commit is contained in:
Bohdan Kapliuk 2024-03-28 23:01:34 +02:00
parent 05049d7373
commit 231f8c368c

View File

@ -43,10 +43,10 @@ int main(){
counter++;
continue;
}
double r1 = (round(funkcia->x*100) + round(funkcia->y*100))/100;
double r2 = (round(funkcia->x*100) - round(funkcia->y*100))/100;
double r3 = (round(funkcia->x*100) * round(funkcia->y))/100;
double r4 = (round(funkcia->x*100) / round(funkcia->y))/100;
double r1 = round((funkcia->x + funkcia->y) * 100) / 100.0;
double r2 = round((funkcia->x - funkcia->y) * 100) / 100.0;
double r3 = round((funkcia->x * funkcia->y) * 100) / 100.0;
double r4 = round((funkcia->x / funkcia->y) * 100) / 100.0;
if(funkcia->result != r1 && funkcia->result != r2 && funkcia->result != r3 && funkcia->result != r4){
results[counter] = 2;
counter++;