大家来教教我这个新手吧
# include <stdio.h>int main()
{
int h,i,j,A,B,C,a,b,c,y;
y=A+B+C;
h=1;
i=1;
j=1;
A=0;
B=0;
C=0;
scanf("%d,%d,%d",&a,&b,&c);
while (h<=a)
{
A=A+h;
h=h+1;
}
return(A);
while (i<=b)
{
B=B+i^2;
i=i+1;
}
return(B);
while (j<=c)
{
C=C+1/j;
j=j+1;
}
return(C);
printf("y=%d\n",y);
}
求1+2+...+a + 1^2+2^2+...+b^2 + 1/1+1/2+...+1/c,大家帮我指出上面程序的错误吧