小数点怎么出
平均数 不能用int 应该用double
看数据类型啊,int没有小数点,double 浮点型有小数点
avg是int型,换成浮点型就有小数点啦
double avg = 0;
不是 浮点数类型 所以没有小数点