Program in C++ to find sum of first “n” natural numbers

The below program will accept the number “n” from the user and calculates the sum of first “n” natural numbers.

For example, if the input provided by the user is 5 then it will calculate the sum of first 5 natural numbers i.e., 1+2+3+4+5


Note: The above program is written and tested using Microsoft Visual Studio 2008

You may also like...

1 Response

  1. Mohanraj says:

    C++ program to find the sum of 5 numbers using default arguments entha programku answer plz

Leave a Reply

Your email address will not be published. Required fields are marked *