8085 program to find the sum of first n natural numbers. The result will be stored at F150.
8085 program to find the sum of first n natural numbers Firstly, we will see the proof then we will proceed with the coding part. Example - Assumption - Ten 8-bit numbers are stored from starting memory location 2050. C program to find the sum of first N natural numbers. Multiply n with n+1. Python Program to Find the Sum of Natural Numbers Using While Loop In this example shows, how to find the sum of the first n natural numbers using a while loop. Consider the sum to be 8-bit number. This tutorials is part of Python Basics. The problems cover topics such as subtraction, counting bits, factorials, loading registers, 2's complement, addition/subtraction, swapping memory locations, multiplication, finding minimum, summing series, and checking parity. e. Algorithm - Jun 23, 2023 · Natural numbers include all positive integers from 1 to infinity. Write an 8085 Assembly language Oct 17, 2022 · Given a number N. Solution: Jul 11, 2025 · Given a positive integer n. The task is to find the sum of the sum of first n natural number. asm store macro res div x mov res,dl;dividing and storing the last bit in dl i. Understanding how to calculate sums and handle iterative processes lays the groundwork for more Jun 16, 2021 · In this lesson, you will learn how to calculate the sum and average of the first n natural numbers in Python. Explore the algorithm, C program, and output with detailed explanation. 3. 5. . Given two numbers X and Y, the task is to find the sum of all those numbers from 1 to N that are divisible by X or by Y. ADD C reg to ACC. The value of N is provided. 7. Move reg A to B. Example - Algorithm – Assign value 500 in SI and 600 in DI Move the contents of [SI] in CL Move 0000 in AX Move the contents of CL to BL Increment the value of SI by 1 Add the contents of AL and [SI] Add 00 to AH with Java Program - To find the sum of first N natural numbers, you can either use direct formula or use a looping technique to traverse from 1 to to N and compute the sum. Using mathematical formula This method uses mathematical formula to directly compute the May 7, 2023 · Problem: Write an assembly language program in 8085 microprocessor to find the sum of digits of an 8-bit number. Logic to find sum of natural numbers using recursion. Example - Assume 8 bit number is stored at memory location 2050. Example to Find Sum of N Natural Numbers: Input: N = 10 Output: Sum of first 10 Natural Number = 55 Input: N = 5 Output: Sum of first 5 Natural Number = 15 Methods to Find the Sum of N Natural Numbers in Java There are three methods to find The sum of the natural numbers formula help in obtaining the total sum of natural numbers starting from 1 to infinity. + n 2 Now let’s see our program to perform the task Aug 16, 2020 · Write a MATLAB script file that calculates the sum of first n natural numbers (the program could prompt the user for the number n). Question : 1. Mar 21, 2021 · In this post, We will see how to write a python program for finding Sum of squares of first n natural numbers in different ways. For exampe: the sum of first 10 even numbers. Here 1 if first term and n is last term. Also, you will get to know how to calculate the addition and average of user-entered numbers, list of numbers. We are going to learn different ways to calculate the sum of squares in python. In this post, we will write a program in 8085 to Find the Maximum of N Numbers. The sum will be stored at memory location 3050 and carry will be stored at location 3051. May 15, 2023 · Writing a C program to find the sum of the first N natural numbers is an excellent way to practice fundamental programming skills. Write an assembly program to multiply a number by 8 program using the rotate instruction. In this example, you will learn to write a program that finds the sum of natural numbers in JavaScript. Fulfil as many constraints as you can: Jul 31, 2021 · In this video, you will learn how to calculate the sum of first N natural numbers assuming the result to be 8-bit using an 8085 microprocessor. Aim: Write an ALP program to calculate the sum of first TEN Natural numbers. Feb 7, 2021 · This shell script will help you to learn add of n numbers in shell script. Scaler Topics explains the calculations and the pseudo-code along with different methods for finding the sum of N natural numbers. To understand these programs, you First ten natural numbers are a set of consecutive natural numbers from 1 to 10, with 1 as the natural number and 10 as the largest one. assuming that first number is located a memory address : 0x2001 second number is located a memory address : 0x2002 store the sma Feb 5, 2019 · Problem - Write an assembly language program to add hexadecimal numbers stored in continuous memory or in an array. Program - 5. Includes methods using loops and formula-based approaches with code examples. Enter up to 10,000 numbers The most significant eight bits of the two numbers to be added are in memory locations 4001H and 4003H. The program must use a “for” or “while” loop to accomplish this, and must NOT use the ready formula s = 1 2 n (n + 1). We will go through one by one. Explain the loop structure with counting and indexing in 8085 programming. Then we take N integers as input from user using scanf function inside a for loop and keep on adding it to a variable sum. At each step, the function adds the current number n to the sum of all smaller numbers by calling recurSum (n-1). Example #include <iostream Jun 23, 2023 · Natural numbers include all positive integers from 1 to infinity. Mar 13, 2024 · Display sum End Flowchart This approach directly applies the formula n (n+1)2 to calculate the sum of the first n natural numbers without the need for iteration. Divide the product obtained by 2. Example Program to illustrate the working of our solution Aug 29, 2021 · In this article, we are going to calculate the sum of squares in python. Calculate the sum of squares of the first N natural numbers in Python. Feb 8, 2023 · Calculate the sum of series of numbers. Webeduclick is an online educational platform that provides computer science tutorials which are very helpful to every student. The problem is that I am beginner of Assembly Language and have no idea of conditional jumps to solve this problem. Feb 1, 2022 · Output Sum of natural numbers is 36 Method 2 An alternate method to solve the problem is by using the general formula to find the sum of the first N natural numbers. Problem Statement Write 8085 Assembly language program to find sum of all even numbers stored in an array. Examples: Input : N = 20 Output : 98 Input : N = 14 Output : 45 Approach: To solve the problem, follow the below steps: ->Find the sum of numbers that are divisible by X upto N. It's simple and fast because we don't Table of contents No headers The following is a complete example program to find the sum of squares from 1 to n. Aug 21, 2025 · C# Sharp programing, exercises, solution: Write a C# Sharp program that displays the sum of n natural numbers. Hello coders, in this tutorial we are going to discuss and write the code for the sum of squares of first n natural numbers using Python. Write an Assembly Language Program for Intel 8085 microprocessor to calculate the sum of N natural numbers, that is, ΣN = 1+2+3+ … + (N-1)+N. Value of count is stored at memory location 3050. Program in 8085 assembly language to find the sum of 32-bit odd numbers along with explanation and result. given in the operand if CY=0. Learn how to find the sum of squares of the first n natural numbers in C programming. There are two ways to compute the sum of N natural numbers. Jan 11, 2025 · In this tutorial, we will learn how to calculate the sum of squares of first n natural numbers using Python. 8085 program to find the sum of series of eve The output of the above program shows the sum of the first n natural numbers. The program sequence is transferred to the memory location specified by the 16-bit address. May 7, 2023 · Algorithm - With n as the input, increment it to obtain n+1. 1K subscribers 5. It initializes the cube_sum variable and iterates through natural numbers from 1 to 𝑛, adding the cube of each number to the sum. In this article, we will learn to write a C++ program to calculate the sum of the first N natural numbers. Solution Here’s a sample code snippet demonstrating how you display the sum of N natural numbers in C++. Let's go through the algorithm. Conclusion Both approaches provided the same result—the sum of the n Sep 4, 2025 · [Alternative Approach] Using Recursion -O (n) and O (n) Space In this approach, we use recursion to find the sum of the first n natural numbers. To Jul 23, 2025 · In order to calculate the next terms, we can take the sum of previous two terms f1 and f2 and then update f1 with f2 and f2 with the new term. Denote it by S1. 8085 program to find the sum of a series - In this program we will see how to add a blocks of data using 8085 microprocessor Problem StatementWrite 8085 Assembly language program to add N 1 byte numbers The value of N is provided DiscussionIn this problem we are using location 8000H Sep 19, 2025 · Learn how to write a simple program to find the sum of natural numbers using loops and formulas in Java, Python, C, and other programming languages. It uses a well-known formula n * (n + 1) // 2, which comes from the arithmetic series sum. To find the sum of first N Natural numbers in C language, we can use formula n * (n + 1) / 2 or use a looping statement to accumulate the sum from 1 to n. Jul 2, 2018 · Problem - Write an assembly language program in 8086 microprocessor to find sum of digit of an 8 bit number using 8 bit operation. Aug 25, 2025 · C# Sharp programming, exercises, solution: Write a program in C# Sharp to find the sum of the first n natural numbers using recursion. Problem Statement Write 8086 Assembly language program to find the average of n numbers stored in a given series starts from memory offset 501. The iterative method gives you a deeper understanding of Aug 8, 2019 · The sum of squares of the first n natural numbers is found by adding up all the squares. XOR with ACC. If students examine closely, they can find an arithmetic progression by using a formula in the following ways: Let's derive the formula for finding the number of terms (n) in an arithmetic series using the given formula where, n is the number of terms, A1 is the first term, An is Sep 14, 2017 · Hello, guys! Today we will see 8051 assembly program to find the sum of first N natural numbers. where N is the number of the first odd numbers (e. 9K views 8 years ago May 6, 2020 · 8085 is a Microprocessor which was developed by Intel in 1970s. Learn more about the first ten natural numbers, their sum using lists, formulas, and examples. Move the content in memory to C reg. Each call adds the current value of n to the sum of smaller values, effectively building the result in a top SUM of first 10 Natural Numbers -8085 Microprocessor | Som Tips Som Tips 13. The recursion continues until the base case is reached, where n = 0, at which point the function returns 0 to stop everything is open source if you know reverse engineering (hack with me!) Program to find a Palindrome and a Program to calculate the Employee Pay slip. The 9000H holding the lower byte, and 9001H is holding the upper byte. g. The formula for finding the sum of first N natural numbers is $ (N^* (N+1) (N+2))/6$. In mathematics, the sum of the first n natural numbers is given by the formula n (n+1)/2. Nov 5, 2024 · Write a c program to find sum of N numbers. We will see two C programs to calculate the sum of natural numbers. using a for a loop and Mathematical Formulae. We can find the sum of squares of first n natural numbers in JavaScript using the approaches listed below. And the use of built-in function sum(). A Program To Add Even Numbers only in a given Array using 8085 Microprocessor2. Conclusion Calculating the cube sum of the first 𝑛 natural numbers is a mathematical operation that finds applications Jul 23, 2025 · The sum of squares of the first n natural numbers is a mathematical problem of finding the sum of squares of each number up to a given positive number n. After adding them, the count Nov 15, 2020 · 8085 program to find the sum of first n natural numbers - 28618602 May 7, 2023 · Problem - Write a program to find the sum of a series where series starts from 3001 memory address and count of series is at 3000 memory address where starting address of the given program is 2000 store result into 4000 memory address. Aug 29, 2024 · Let's see some simple example to demonstrate the use of some important instructions of 8085. May 9, 2018 · The sum of first array will be save in AX and second array in BX in hexadecimal format. The function calls itself with (n-1) until it reaches the base case of n = 1. Jun 21, 2013 · An assembly language 8085 program to calculate sum of first 20 even numbers(8 bits) and store the result at location 6000 and 6001. Jun 4, 2021 · AIM Write an ALP for 8085 to find sum of series of n consecutive numbers Objective: To learn and understand the assembly instructions To draw flow chart for addition of a series of numbers To develop an 8085 assembly language program to add series of number Flowchart Feb 1, 2022 · 0 I have just started to learn assembly language at school, and as an exercise I have to make a program that calculate the sum of the first n integers (1+2+3+4+5++n). is the code correct? (given that it needs to be in a loop) or is there a better code for calculating the sum? Aug 8, 2024 · Your All-in-One Learning Portal: GeeksforGeeks is a comprehensive educational platform that empowers learners across domains-spanning computer science and programming, school education, upskilling, commerce, software tools, competitive exams, and more. Dec 30, 2024 · For any number n, the sum of the first n natural numbers can be found by adding n to the sum of the first n – 1 natural numbers. Sep 9, 2020 · printf("Sum of the first %u natural numbers is %llu\n" , n, sum); Or you could include the header <inttypes. We are storing the result at location 9000H and 9001H. The same can be implemented with PL/SQL. In this program we will see how to add first n natural numbers. The length of the series is in memory location 4200H and the series begins from memory location 4201H. Apr 11, 2022 · This will skip all even numbers and it will iterate only the odd values. Write an assembly language program to find the sum of a series 1+2+3+. Assumption - Suppose the size of the array is stored at memory location 2050 and the base address of the array is 2051. 8085 program to add a series of numbers|sum of array elements in 8085|ALP to find sum of numbers Comparison of two numbers in 8085|8085 program to find the larger number|ALP to find larger number May 10, 2021 · Sum of squares of N natural numbers using 8085 Simulator M 1. To do so we can use different approaches to write the C++ code and some such methods are mentioned below, Method 1: Using for Loop Method 2: Using Formula for the Sum of Nth Term Method 3: Using Recursion We’ll discuss and learn more May 11, 2024 · The function `sum_of_n_natural_numbers (n)` calculates the sum of the first N natural numbers. Input - 5 Output - 55 Explanation - 1 2 + 2 2 + 3 2 + 4 2 + 5 2 There are two methods to find the Sum of squares of first n natural numbers − Using Loops − the code loops through the digits until n and find their square, then add this to a sum variable that outputs the sum. I NEED TO SUM numbers 1,2,3,4,5,6,7,8,9,10 by using loop in 8086 assembly. Oct 1, 2017 · Program to find the sum of first n natural numbers. Therefore, S = \ (\frac {25} {2}\) (25 + 1), [Using the formula S = \ (\frac {n} {2}\) (a + l)] = \ (\frac {25} {2}\) (26) = 25 × 13 = 325 Therefore, the sum of first 25 natural numbers is 325. All the instructions in this microprocessor are encoded in a single byte. Jun 4, 2021 · AIM Write an ALP for 8085 to find sum of series of n consecutive numbers Objective: To learn and understand the assembly instructions To draw flow chart for addition of a series of numbers To develop an 8085 assembly language program to add series of number Flowchart Jul 11, 2025 · Given a positive integer n. Example: Assumptions: Addresses of input data and output data are 2050 and 3050 respectively. The starting address of first number is 6000H Write an assembly language program that adds these two numbers and stores the sum in the same format starting from memory location 6200H. I managed to build this program but during the comparison (line. Algorithm Flow Chart Program Example Feb 6, 2025 · Learn how to find the sum of natural numbers in Python using a loop, recursion, and a mathematical formula. 2. Using a while loop, calculate this sum step by step. First method: It's simple basic code. ed and checked whether it has reached zero. To To find the sum of first N natural numbers in Dart, we may use the direct mathematical formula, or use a For loop to iterate from 1 to N and accumulate the sum. Mar 14, 2024 · As discussed in previous post, sum of n natural number n (n+1)/2, we find the Average of n natural number so divide by n is n (n+1)/2*n = (n+1)/2. This program includes loop logic and carry handling for 8-bit addition. ->Find the sum of numbers that are divisible by Y upto N . These methods included mathematical induction, simultaneous equations, linear algebra, visual proofs with completely connected graphs and triangular numbers, and Gauss's intuitive addition technique. In this program we will see how to find the average of n numbers in a given series. We have a positive integer "N", and our task is to calculate (1 2 + 2 2 + 3 2 + 4 2 + 5 2 +… + N 2) Example: Method 1: O (N) In this method, a user has to run the loop from 1 to "N" natural number, and for each K, 1 <= K <= N. So, ignore This video discussed about how to add ten natural number usin 8085 Microprocessor Assembly language program. Jul 23, 2025 · In order to calculate the next terms, we can take the sum of previous two terms f1 and f2 and then update f1 with f2 and f2 with the new term. May 17, 2018 · Problem – Write an assembly language program in 8086 microprocessor to find average of n eight bit numbers. The total of first 5 natural numbers is: 15 Time Complexity: O (n), because we are running a loop n times. Set HL with memory address. The programs demonstrate various instructions of 8085 like load, move, add, subtract, compare, jump etc to Apr 9, 2016 · C programming, exercises, solution: Write a C program that displays the n terms of square natural numbers and their sum. The final result is then printed. Get to know a method to calculate sum of n natural numbers using for loop where n is user input. Write an assembly language program for adding a set of a numbers. In this program, user first enters the count of integers that he wants to add. It’s a more efficient method since it avoids the overhead of a loop and an intermediate variable. Space Complexity: O (1). Algorithm: Sep 27, 2025 · To find the sum of the first n natural numbers using recursion, we define a function recurSum (n-1). Thus, the recursive formula is: Sum (n) = n + Sum (n−1) Stopping Condition: The recursion stops when n becomes 0. Jun 7, 2025 · C Program to Find the Sum of n Natural Numbers Using Recursion If you have difficulty to understanding any program or have any doubts or questions, then tell me in the comment below. In order to find the sum of numbers, first the counter must be initialized with the size of an array and accumulator must be initialized to zero. Example - Algorithm - Load the base address of the array in HL Jul 14, 2021 · This tutorial explains how to write a program to find the sum of the squares of n numbers where the value of n is given by the user. If it has, the loop terminates otherwise, the n e memory location 3000H stores the counter Clearly, it is an Arithmetic Progression whose first term = 1, last term = 25 and number of terms = 25. Program to Find the Sum of Natural Numbers using Recursion C C++ Python PHP JAVA Java The document contains programs to perform various operations on 8-bit numbers like addition, subtraction, multiplication, division using 8085 microprocessor. N=4, then the first odds are 1,3,5,7) it should output the odd numbers. The final cube sum is then displayed. Solution: Let S be the required sum. Assembly language program to find sum of first N natural numbers Raw Add. The document provides solutions to 11 assembly language programming problems for the 8085 microprocessor. Repeat for 10 times to get first 10 numbers of Fibonacci Sequence. Consider the sum to be 16-bit number. We can add all numbers it is iterating to get the final sum. In 8085 microprocessor, no direct instruction exists to multiply two numbers, so multiplication is done by repeated addition as 4×5 is equivalent to 4+4+4+4+4 (i. The main block is stored from address 8010H. Understand the sum of the natural numbers formula with Derivation, Examples, and FAQs. For example, if n = 5, the sum of squares would be 12 + 22 + 32+ 42+52=55. Using a mathematical formula In this approach, we use the formula sum = n * (n + 1) / 2 to directly calculate the sum of the first natural numbers. , The task is to find 1 2 + 2 2 + 3 2 + …. +10 (or sum of first 10 natural numbers). Nov 4, 2025 · Calculate the sum of a set of numbers. , 5 times). 10). In this video you will learn. The sum of squares is the result of adding up the squares of each number from 1 to n. assuming that first number is located a memory address : 0x2001 second number is located a memory address : 0x2002 store the sma Jan 11, 2025 · In this tutorial, we will learn how to calculate the sum of squares of first n natural numbers using Python. 4. Example #include <iostream May 30, 2022 · Program - Write an assembly language program in 8085 microprocessor to count even numbers in a series of 10 numbers. Jul 23, 2025 · Natural numbers are those positive whole numbers starting from 1 (1, 2, 3, 4, ). The result will be stored at F150. Nov 11, 2024 · The formula ( n \times (n + 1) / 2 ) directly computes the sum of the first n natural numbers. Here my attempt: MOV AX,01h MOV CX,0ah LABEL1: inc AX LOOP LABEL1 HLT Feb 8, 2023 · Calculate the sum of series of numbers. In this problem we are using location 8000H to hold the length of the block. Feb 26, 2016 · Write a recursive function in C to find sum of all natural numbers between 1 to n. 6. Algorithm Flow Chart Program Jul 23, 2025 · All natural numbers continue till infinity and so on. Dec 21, 2023 · Here, we will write a Python program to find the sum of square of first N natural numbers. Calculator performs addition or summation to compute the total amount of entered numbers. Using formula and loops For example, if we have to find the sum of first 1000 numbers, the loop will have to run 1000 times to find out the sum. The size of the array is stored at location F100; the numbers are stored from memory location F101 onwards. Let's explore different methods to compute this sum efficiently. Given a number n, find the sum of the first n natural numbers. A C program to compute the sum 1+2+3+ +n upto n terms. Mar 1, 2021 · -1 I'm trying to make a program that calculates the sum of the first N odd numbers. Write 8085 Assembly language program to add N 1-byte numbers. Sum of the square of first n natural number using Python Given a positive integer n. h> and use the type uintmax_t for the variable sum as it is shown in the demonstrative program below. Dec 23, 2020 · This tutorial walks you through creating a C program that calculates the sum of the first N natural numbers using a 'while' loop. Then, first number is moved to register B and added with accumulator. The method and its ALP is properly explained with example. Conclusion The sum of natural numbers can be calculated in JavaScript using either an iterative approach with a for loop or a direct mathematical formula. Python program to calculate sum of first n natural numbers. Once user finished entering N integers we print sum of all N integers on screen. The size of the series is stored at memory offset 500. In this post, we will write a program in 8085 to calculate 8-bit sum of N 8-bit numbers. Problem Statement Write 8085 Assembly language program to add first N natural numbers. Definition: This calculator computes the sum of the first n natural numbers, where natural numbers are positive integers starting from 1. It does not include zero (0). We are using the number N as count variable, in each step we are calculating (A + Count) value, and store them into A. Store the result in memory locations 4004H and 4005H with the most significant byte in memory location 4005H. Purpose: Helps students, educators, and professionals in mathematics and related fields quickly calculate the sum of a sequence of natural numbers, useful in algebra, arithmetic series, and problem-solving In this tutorial, we are going to write a program to find the sum of the first n natural numbers using a while loop. Oct 10, 2025 · Learn how to get the sum of first N natural numbers. The memory addresses given in the program are for a particular m Problem Statement Write 8085 Assembly language program to find sum of all even numbers stored in an array. This task introduces beginners to the concepts of loops, user input, and basic arithmetic operations in C. Some of the instructions are followed by one or two bytes of data, which can be a memory address, an immediate operand or a port number. Method 1: C program to find the sum of odd natural numbers by using a for loop: Let’s write a program that uses a for loop to find the sum of first n odd numbers starting from 1. is the remainder mov dx,0 endm ansprint macro res mov dl,res add dl,30h mov ah,02h int 21h endm data segment number dw ? result dw ? msg db 10,13,"enter a last number to find sum $" msgres db In this video, you will learn how to calculate the sum of first N natural numbers assuming the result to be 16-bit using an 8085 microprocessor. 12K subscribers Subscribed Jul 23, 2025 · The goal here is to calculate the sum of squares of the first n natural numbers. Each solution is a short assembly language program that May 6, 2020 · 8085 is a Microprocessor which was developed by Intel in 1970s. Discussion We are getting the value of N from memory location 8000H. Write an assembly language program for arranging an array of 8-bit unsigned number in ascending order. These approaches all led to the same conclusion Oct 3, 2019 · Learn Python Tutorial for beginners and professional with various python topics such as loops, strings, lists, dictionary, tuples, date, time, files, functions Use the 8085 microprocessor to compute the sum of a series of numbers stored in memory. Therefore, S Feb 1, 2024 · Let's explore the various methods to derive the closed-form expression for the sum of the first n natural numbers, represented as S(n)= n(n+1)/2. Oct 3, 2019 · Explanation The Python program defines a function cube_sum_of_natural_numbers that takes 𝑛 as input. You can also use recursion technique. We will learn in detail. This method is much more efficient than using a loop, especially for a large number n. -------------------------------- This video explains the method of addition of n numbers through array in 8085 microprocessor. i tried but couldn't complete MVI c,00H MOV B, C MOV D, 00H NEXT Sum of First N Numbers Calculator is a free online tool to calculate the sum of first N numbers, Including natural numbers, even numbers, odd numbers, prime numbers and composite numbers. It covers the logic behind the loop, provides sample code, and explains how to implement the program, making it ideal for beginners looking to understand loop constructs and basic arithmetic in C. Jul 23, 2025 · Example 2: Calculate the Sum of N Numbers Using While Loop and User Input In this example, the user inputs a value N, and the program calculates the sum of the first N natural numbers using a while loop, efficiently decrementing 'count' from N to 1 and accumulating the sum in the 'total' variable. Store the sum Thursday, 10 December 2015 Assembly language program to find sum of first N natural numbers Code: store macro res div x Jan 14, 2016 · how do i assembly program to find the smallest among two numbers. Find the sum of first 100 natural numbers. 1. For example, the sum of squares for 10 is as follows Sep 17, 2024 · Problem Write a program in C++ to find the sum of first “N” natural numbers and display it on the console. But if we use the mathematical formula, it will find it immediately. Find the Sum of N Natural Numbers in C++ Given an integer input of N, the objective is to find the sum of all the natural numbers until the given input integer. In the first C program we are using for loop for find the sum and in the second program we are doing the same using while loop. 9) I only compare the even numbers in register R1, so I would have to do another comparison for the Aug 28, 2024 · In this article, we will check How to calculate the sum of N natural numbers using an iterative approach i. a: Add two 16-bit numbers - Source Program 1 Oct 1, 2017 · Program to find the sum of first n natural numbers. It also contains programs to find the largest/smallest number in an array, and to arrange an array of numbers in ascending order. gwebznluwpbeiequhepmjdubgiqiyxgwzoyowdkgbtmdkbsxvqizwkoljjnomzrmidmzvtlhqd