SHOW_AVG.C
资源名称:C.rar [点击查看]
上传用户:qq5388545
上传日期:2022-07-04
资源大小:29849k
文件大小:0k
源码类别:
界面编程
开发平台:
C/C++
- #include <stdio.h>
- float average_value(int a, int b, int c)
- {
- return ((a + b + c) / 3.0);
- }
- void main(void)
- {
- printf("The average of 100, 133, and 155 is %fn",
- average_value(100, 133, 155));
- }