c语言:全系1000学生募捐,总数达到10万元结束,统计捐款人数,平均每人捐款数目

在全系1000学生中,征集慈善募捐,当总数达到10万元时就结束,统计此时捐款的人数,以及平均每人捐款的数目。spa 解:程序:blog #include<stdio.h>get #define SUM 100000博客 int main()io {class float amount, aver, total;//amount金额,数量float int i=0;程序 total = 0;统计 f
相关文章
相关标签/搜索