int ch[3], i; for(i=0; i<3; i++) { scanf("%f", &ch[i]); } printf("%f %f", ch[0]+ch[1]+ch[2], (ch[0]+ch[1]+ch[2])/3);
f는 float의 f이니라
아;ㅈㅅㅈㅅ