Problem Description

If N = 5, find sum 1+2+3+4+5 = 15
Real Life: Like adding page numbers from page 1 to page N.
Step-by-Step Logic:
1. Take value of N
2. Start sum = 0
3. Add numbers from 1 to N one by one
4. Print final sum

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next