APC-S-004.c
Program to print first 10 natural numbers using while loop.
#include <stdio.h> #include <conio.h> void main() { clrscr(); int x; x = 1; while (x <= 10) { printf("%d ", x); x++; } getch(); }