Search results

  1. S

    While-loop (with an example)

    Hello! I am trying to understand the concepts of while-loops for programming, and was watching this tutorial on youtube. The example was given in Matlab (which I believe has a similar syntax to R): bal = 5000; year = 0; while bal<1000000 bal = 1.08*bal + 5000; year = year + 1; end...