#include void main(){ int n=0; float x,sum=0,aver=0; scanf("%f",&x); n++; while(x!=-1) { sum+=x; n++; scanf("%f",&x); }; aver=sum / (n - 1); printf("\naver=%7.2f\nsum=%7.2f\n",aver,sum);}
你要问什么