Write a c program to find the sum of first n natural numbers?

Posted by Editorial Staff | Updated on

Problem:
Write a c program to find the sum of first n natural numbers.

Solution:

Copy the below c program and execute it to see the real time output. We have used the for loops to write c program.

Output:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers