/* * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025 * Repo: https://github.com/notamitgamer/bsc * License: MIT */ /* Write a program the sum of first 10 natural numbers. */ /* * Compiler Note: This source code is specifically designed for compilation * and execution within the ** Turbo C ** environment. * * Testing Disclaimer: Due to a lack of access to the required Turbo C * compiler software, this code has not been formally compiled or tested. */ #include #include void main() { clrscr(); int i, sum = 0; for (i = 1; i <= 10; i++) { sum += i; } printf("\nSum of the first natural number : %d", sum); getch(); }