Ai
1 Star 1 Fork 3

Fyang/Extreme-C-Learning-Notes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ExtremeC_examples_chapter2_1_main.c 399 Bytes
一键复制 编辑 原始数据 按行查看 历史
Fyang 提交于 2024-01-28 10:09 +08:00 . init extreme-c-learning-note projects
#include <stdio.h>
#include "ExtremeC_examples_chapter2_1.h"
int main(int argc, char** argv) {
int array[5];
array[0] = 10;
array[1] = 3;
array[2] = 5;
array[3] = -8;
array[4] = 9;
double average = avg(array, 5, NORMAL);
printf("The average: %f\n", average);
average = avg(array, 5, SQUARED);
printf("The squared average: %f\n", average);
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/fyang0906/extreme-c-learning-notes.git
git@gitee.com:fyang0906/extreme-c-learning-notes.git
fyang0906
extreme-c-learning-notes
Extreme-C-Learning-Notes
master

搜索帮助