Sum of n natural numbers in java using for loop July 8, 2019 16 32 64 128 Sum of n natural numbers in java using while loop