>>151 いってるいみがわからん。
なぜdなんだ?
Mにmを、Mにsをじゃないのか?


#include <stdio.h>

int main(int argc, char *argv[]){
int m, M, s, i, d;

scanf("%d", &M);
m= M; s=M;
for(i= 1; scanf("%d", &d)== 1; i++){

s+= d;
if( d>M ) M= d;
if( d<m ) M= d;
}

printf("%d\n", M);
printf("%.3f\n",(double) s/i);
printf("%d\n", m);

return 0;
}