期中实验二 从键盘上输入若干个学生的成绩,统计并输出最高成绩和最低成绩,当输入负数时结束输入。(用while循环语句实现) 输入一个数,求出该数的各位数字的立方和,如输入123,则输出36。 计算 s=1!+2!+……+20! 的值并输出。 从键盘上输入若干个学生的成绩,统计并输出最高成绩和最低成绩,当输入负数时结束输入。(用while循环语句实现) 下面展示代码。 #include<stdio.h> void main() { int score,max=0,min=100;//这样赋值更好更新max和min printf("please enter one score\n"); scanf("%d",&score); while(score>=0) { if(score<min) min=score