Skip to content

Commit 80885b4

Browse files
[C] Removed redundant parantheses
1 parent a4c9655 commit 80885b4

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

C-method/ac-sql

67.9 KB
Binary file not shown.

C-method/src/task2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ void SELECT_FROM_studenti(secretariat *secretariat,
468468
printf("%c", student.statut);
469469
} else if (!strcmp(campuri[j], "medie_generala")) {
470470
// Rotunjire la 2 zecimale (roundf -> cel mai apropiat intreg):
471-
float rounded = roundf((student.medie_generala) * HUNDRED) / HUNDRED;
471+
float rounded = roundf(student.medie_generala * HUNDRED) / HUNDRED;
472472
printf("%.2f", rounded);
473473
}
474474

0 commit comments

Comments
 (0)