We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 236c76a commit e356c08Copy full SHA for e356c08
solutions/beecrowd/1040/1040.c
@@ -6,7 +6,7 @@ int main() {
6
while (scanf("%f %f %f %f", &a, &b, &c, &d) != EOF) {
7
m = (a * 2.0 + b * 3.0 + c * 4.0 + d) / 10.0;
8
9
- printf("Media: %.1f\n", ((float)(int)(m*10)/10.0));
+ printf("Media: %.1f\n", ((float)(int)(m * 10) / 10.0));
10
11
if (m >= 7.0) {
12
printf("Aluno aprovado.\n");
0 commit comments