#include<stdio.h>void main(){int score,sum=0,j,k;float avg,n=0;{scanf("%d",&score);for(j=1;j<=10;j++);if(score>0){ n++;sum=sum+score;}avg = sum/n;printf("平均分=%f 总分=%d n=%f",avg,sum,n);}
能不能,试一下就知道了