Jump to content

Loops/Downward for: Difference between revisions

Line 205:
 
Using For:
<lang Mathematica> For[i = 10, i >= 0, i--, Print[i]]</lang>
Using Do:
<lang Mathematica> Do[Print[i], {i, 10, 0, -1}]</lang>
Using Scan:
<lang Mathematica> Scan[Print, Range[10, 0, -1]]</lang>
 
=={{header|MAXScript}}==
1,111

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.