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%
関連項目