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