APC-S-004.c (667B)
1 /* 2 * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 3 * Repo: https://github.com/notamitgamer/bsc 4 * License: MIT 5 */ 6 7 /* Program to print first 10 natural numbers using while loop. */ 8 9 /* 10 * Compiler Note: This source code is specifically designed for compilation 11 * and execution within the ** Turbo C ** environment. 12 * 13 * Testing Disclaimer: Due to a lack of access to the required Turbo C 14 * compiler software, this code has not been formally compiled or tested. 15 */ 16 17 #include <stdio.h> 18 #include <conio.h> 19 20 void main() 21 { 22 clrscr(); 23 int x; 24 x = 1; 25 while (x <= 10) 26 { 27 printf("%d ", x); 28 x++; 29 } 30 getch(); 31 }