Skip to content
Prev 18117 / 398502 Next

how does while work

The for loop is nested inside the while loop, so it is finished before the
next iteration of the while loop is attempted.  So, in short, the for loop
ran 101 times, ending with i, x, and a all equal to 101.  Then the condition
of the while loop is checked, (and not satisfied).

Andy
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._