Beecrowd 1040 Average 3 Solution in C, C++,Python
Question Beecrowd 1040 Average 3 Solution in C,C++,Python #include <stdio.h> int main() { float a, b, c, d, e, i, j, k; double avg, avrg; scanf(“%f %f %f %f”, &a, &b, &c, &d); avg = ((a*2) + (b*3) + (c*4) + d) / 10; printf(“Media: %.1lf\n”, avg); if ( avg < 5.0 ){ printf(“Aluno reprovado.\n”); …
Beecrowd 1040 Average 3 Solution in C, C++,Python Read More »