next up previous contents
Next: MODの使用 Up: 繰り返し、二つ以上の条件式 Previous: Sample Program 4a   Contents

Sample Program 4b

ここでは、サンプル4aと同じことをforとnextを用いて 行っています。
\begin{code}
100 a=0
110 for i=1 to 10
120 a=a+i
130 next i
140 print a
990 end
\end{code}



Takeyoshi Nagai 2013-10-07