Skip to main content
added 18 characters in body
Source Link
DialFrost
  • 5.2k
  • 2
  • 15
  • 58

downto

If you're not sure how to loop downwards, downto is usually the one to go for. Instead of:

for i=0 to 1000 do Printf.printf"%d "(1000-i) done 

You can do:

for i=1000 downto 0 do Printf.printf"%d "i done 

downto

If you're not sure how to loop downwards, downto is usually the one to go for. Instead of:

for i=0 to 1000 Printf.printf"%d "(1000-i) 

You can do:

for i=1000 downto 0 Printf.printf"%d "i 

downto

If you're not sure how to loop downwards, downto is usually the one to go for. Instead of:

for i=0 to 1000 do Printf.printf"%d "(1000-i) done 

You can do:

for i=1000 downto 0 do Printf.printf"%d "i done 
Source Link
DialFrost
  • 5.2k
  • 2
  • 15
  • 58

downto

If you're not sure how to loop downwards, downto is usually the one to go for. Instead of:

for i=0 to 1000 Printf.printf"%d "(1000-i) 

You can do:

for i=1000 downto 0 Printf.printf"%d "i