#include #include int main() { int sum,长度=10; 中浮子; int tab[10]={1,2,3,4,5,6,7,8,9,10}; 整数 i; 总和=0; for (i=0 ; i< length ; i++) { 总和 += tab[i]; } 均值 = (浮点数)总和 / (浮点数)长度; printf(%f\n”,average); 返回 0; } |
Please disable your ad blocker and refresh the window to use this website.