#include <stdio.h> int main() { float a = 0, b = 0, c = 0, d = 0, e = 0; float average = 0; while (scanf("%f %f %f %f %f", &a, &b, &c, &d, &e) != EOF) { average = (a + b + c + d + e) / 5; printf("%.2f", average); } return 0; }
#include <stdio.h> int main() { float a = 0, b = 0, c = 0, d = 0, e = 0; float average = 0; while (scanf("%f %f %f %f %f", &a, &b, &c, &d, &e) != EOF) { average = (a + b + c + d + e) / 5; printf("%.2f", average); } return 0; }