I would like to mainly know the working of a for
loop. For this I think a small sample program will be helpful to me. So what is a simple program to display the first N natural numbers?
Using a 'for' loop in batch file programming to display the first N natural numbers

Best Answer
If you are talking about Windows batch programming here you have a natural numbers generator:
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, 
Relate
 What is the most efficient way to generate a random permutation of first n natural numbers?
 Sum of the first n numbers in prolog
 How to calculate first n prime numbers?
 Print first N prime numbers in Common Lisp
 Print first n odd numbers in APL [closed]
 recurrence relation: sum of first n even numbers
 Restrict SOLR Search to First N Numbers
 Computing the sum of the first n numbers in lisp
 Smallest number divisible by first few natural numbers (using the R foreach package) [duplicate]
 awk math  getting natural numbers
 Get first element of the first sequence of length N of consecutively increasing numbers in R
 Consequences of inability to add natural numbers in C
 generate sequence with squares, cubes and factorials of natural numbers
 Trouble writing my notation for natural numbers in Coq
 VHDL Product of two natural numbers [closed]
comments:
/l
or/L
is for loop. Easy, ah?