Program to find sum of first n numbers in java

Let’s see program to find sum of first n numbers in java.

 

Output is – The Sum Of first 5 Numbers is : 15

Top