请大侠帮我看看这个程序哪里有问题
这是个求1-100奇数之和的平均值的程序# include <stdio.h>
int main(void)
{
int i;
float pj, sum1, sum;
sum = 0;
sum1 = 0;
for (i=1; 1<=100; ++i)
{
if (i%2 != 0)
{
sum = sum + i;
sum1 = sum1 + 1;
}
}
pj = sum/sum1;
printf("平均值为:%f\n", pj);
return 0;
}