LOTUSSCRIPT 言語
たとえば、次の例は前の例のサブルーチンの実行可能部分を If...GoTo を使って書き換えたものです (この場合、Else 節はありません)。
approx!= .25 iters% = 0 ReIter: iters% = iters% + 1 tempProx!= approx! approx!= .25 ^ tempProx! If Abs(tempProx!- approx!)>= .0001 And iters% < 40 _ GoTo ReIter Print approx!, Abs(approx!- tempProx!), "Iterations:"iters%
関連項目