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