> 其他 >
写编程:输入三个数,计算并输出它们的平均值.
人气:124 ℃ 时间:2019-12-20 03:18:34
解答
float x,y,z;
printf("input 3 numbers:\n");
scanf("%f%f%f",&x,&y,&z);
printf("%f",(x+y+z)/3);
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版