Java Program to calculate sum of First N Natural numbers

Description

Get input n and calculate the sum of first n natural numbers.
Input:
5
Output:
The sum is: 15

Solution

Unable to open file!