
For each repetition print the value of i. * end (i<=end), increment the loop count by 1 to get * Start loop counter from start (i=start) and go till Printf("Natural numbers from %d to %d : \n", start, end)

The loop structure should look like for(i=start i Initialize loop from start that runs till end. Store it in some another variable say end. Using above logic you can easily find a way to print natural numbers in range. * For each repetition print the value of i.ġ0 Logic to print natural numbers in range * increment the loop count by 1 to get the next value.

* Start loop counter from 1 (i=1) and go till n (i<=n) Printf("Natural numbers from 1 to %d : \n", n) * C program to print all natural numbers from 1 to n Program to print natural numbers from 1 to n /** So to print from 1 to N print the value of i. You might think, why print value of i inside loop? Because we need to print natural numbers from 1 to N and from loop structure it is clear that i will iterate from 1 to N.
