大家别笑 我刚学 这是自己编的 帮我看看哪里错了 谢谢
main( )
{int i,t,u,v,w,sum;float sum1,sum2,x;
do{t=t+i; i++;}
while(i<=100);
do{u=u*w; w++;
sum=u+u*w;}
while(w<=20);
do{k=1/x;x++;
sum1=k+1/x;}
while(1<=10);
sum2=t+sum+sum1;
printf("f%",sum2);
}
program test;
var s,r:integer; i,j,k:real; begin
for r:=1 to 100 do s:=s+r; writeln('s=',s);
writeln;
i:=1; for r:=1 to 20 do begin i:=i*r; j:=j+i; end; writeln('j=',j); writeln;
for r:=1 to 10 do begin i:=r; i:=1/i; k:=k+i; end; writeln('k=',k); writeln;
readln;
end.