Program to find sum of first n natural numbers
Filed under Xoriant
The question
Write a program to calculate the sum of the first n natural numbers.
No write-up yet. Related questions below have one.
Related Xoriant questions
Collected from public candidate posts and coding forums. Updated Nov 2026.