[案例]输入3个整数,求它们的和及平均值。 include“stdio.h #include“conio.h” void main() int numl,num2,num3,sum; float aver; printf("Please input three numbers:") scanf("%od,%d,%d",&numl,&num2,&num3); sum numl num2 num3; /*求累计和*/ aver sum/3.0; /*求平均值* printf("numl=%d,num2=%d,num3=%d n",numl,num2,num3); printf("sum-%d,aver-%7.2fn",sum,aver); getchO); 2024/10/28 32 2024/10/28 32 [案例] 输入3个整数,求它们的和及平均值。 #include “stdio.h” #include “conio.h” void main() {int num1,num2,num3,sum; float aver; printf("Please input three numbers:"); scanf("%d, %d, %d", &num1, &num2, &num3); sum = num1 + num2 + num3; /*求累计和*/ aver = sum / 3.0; /*求平均值*/ printf("num1=%d,num2=%d,num3=%d\n", num1, num2, num3); printf("sum=%d, aver=%7.2f\n",sum, aver); getch(); }