202012-10 C语言 用while循环求和的平均值操作 Ⅰ、用while循环求和的平均值:①、//代码摘下直接可以运行#include<stdio.h>intmain(){intcount=0,total,number;total=0;//total:存放累加和printf(“Pleaseinputsixnumber!\n”);while(count<=5)//循环控制条件{count++;//循环体scanf("%d",&number);printf(“EntertheNo.%d\n”,number);total+=number;//计算累加和}printf(“Average:%.2f\n”,(total*1.0)/6);return0;}②、结果展示:例如:此程序是通过计算输入的6... 继续阅读 >