Question: ** Java** Write method public static int sum(int n) that take a positive integer n as input and return the sum of 1+2++n
** Java**
"Write method public static int sum(int n) that take a positive integer n as input and return the " "sum of 1+2++n "
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
