bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

APC-S-007.c (704B)


      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 /* Write a program the sum of first 10 natural numbers. */
      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 i, sum = 0;
     24     for (i = 1; i <= 10; i++)
     25     {
     26         sum += i;
     27     }
     28     printf("\nSum of the first natural number : %d", sum);
     29     getch();
     30 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror