Write a c code to find the sum of n natural numbers up to


Write a C++ code to find the sum of n natural numbers up to given term.

Example:

If you want to find the sum of series 1+2+3+4+5.....+n. 

Here if you specify n value as 5 you can find the sum up to 5 which is 1+2+3+4+5=15 

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Write a c code to find the sum of n natural numbers up to
Reference No:- TGS01246943

Now Priced at $12 (50% Discount)

Recommended (91%)

Rated (4.3/5)