Using Octave: Difference between revisions
→Control flow with loops
(→Control flow with loops: Correct spelling) |
|||
Line 126: | Line 126: | ||
k = 1; | k = 1; | ||
step = 2; | step = 2; | ||
while (k <= | while (k <= 100) | ||
y( | y(k) = k^2; | ||
k = k + step; | k = k + step; | ||
endwhile</syntaxhighlight> | endwhile</syntaxhighlight> |