結果 : sum of first n natural numbers in java using while loop