C program to print numbers from 1 to 10 using while loop
Using while loop, in this C program we are going to print the numbers from 1 to 10.
To print the numbers from 1 to 10,
- We will declare a variable for loop counter (number).
- We will check the condition whether loop counter is less than or equal to 10, if condition is true numbers will be printed.
- If condition is false – loop will be terminated.