这个程序为什么会错误有没有大佬讲解一下
#include"stdio.h"#define N 10
main()
{
int i;
float k[N];
float ave;
float s=0.0;
for(i=0;i<N;i++)
scanf("%f",&k[i]);
for(i=0;i<N;i++)
s=s+k[i];
ave=s/10.0;
printf("the avg is%f",ave);
}
2022-10-11 09:29
2022-10-11 19:56
2022-10-11 20:00
2022-10-12 12:14