WAP to print all natural numbers from 1 to n using while loop.
C program to print all natural numbers from 1 to n using while loop Write a C program to enter any number from user and print all natural numbers from 1 to n using while loop. How to print all natural numbers from 1 to n using while loop in C programming. Example: Input upper limit to print natural numbers: 10 Output natural numbers from 1 to 10: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 Also view this program using other programming methods: C program to print all natural numbers from 1 to n using for loop. C program to print all natural numbers from 1 to n using recursion. Required knowledge Basic C programming, Loop Program to print natural numbers using while loop 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 /** * <a href="#">C program to print all natural numbers from 1 to n using while loop</a> */ ...