Using a 'for' loop in batch file programming to display the first N natural numbers Using a 'for' loop in batch file programming to display the first N natural numbers windows windows

Using a 'for' loop in batch file programming to display the first N natural numbers


If you are talking about Windows batch programming here you have a natural numbers generator:

for /L %i IN (0,1,9) do @echo %i

Other helpful links to deal with files and so on:

If you are talking about GNU Linux/Unix bash scripting you can go to:

Hope that helps,