Tag: sum and average of n numbers in java using array