#include <stdio.h>
#include <limits.h>
#define NUM 5
int main(){
float notas[NUM];
float media = 0;
float maior = 0, menor = INT_MAX;
for (int i = 0; i < NUM; i++) {
maior = notas[i] > maior ? notas[i] : maior;
menor = notas[i] < menor ? notas[i] : menor;
media += notas[i];
}
media /= NUM;
printf("%.1f %.1f %.1f\n\n", maior
, menor
, media
); for (int i = 0; i < NUM; i++) {
}
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxsaW1pdHMuaD4KI2RlZmluZSBOVU0gNQoKaW50IG1haW4oKXsKCWZsb2F0IG5vdGFzW05VTV07CglmbG9hdCBtZWRpYSA9IDA7CglmbG9hdCBtYWlvciA9IDAsIG1lbm9yID0gSU5UX01BWDsKCWZvciAoaW50IGkgPSAwOyBpIDwgTlVNOyBpKyspIHsKCQlzY2FuZigiJWYiLCAmbm90YXNbaV0pOwoJCW1haW9yID0gbm90YXNbaV0gPiBtYWlvciA/IG5vdGFzW2ldIDogbWFpb3I7CgkJbWVub3IgPSBub3Rhc1tpXSA8IG1lbm9yID8gbm90YXNbaV0gOiBtZW5vcjsKCQltZWRpYSArPSBub3Rhc1tpXTsKCX0KCW1lZGlhIC89IE5VTTsKCXByaW50ZigiJS4xZiAlLjFmICUuMWZcblxuIiwgbWFpb3IsIG1lbm9yLCBtZWRpYSk7Cglmb3IgKGludCBpID0gMDsgaSA8IE5VTTsgaSsrKSB7CgkJcHJpbnRmKCIlLjFmICIsIG5vdGFzW2ldKTsKCX0KfQ==