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