Java: Display n terms of natural numbers and their sum

Java: Display n terms of natural numbers and their sum