+1 (218) 451-4151
glass
pen
clip
papers
heaphones

1. Write a short Java method that takes an integer n and returns the sum of all positive integers…

1. Write a short Java method that takes an integer n and returns the sum of all positive integers…

1. Write a short Java method that takes an integer n and returns the sum of all positive integers less than or equal to n.2. Write a short Java method that takes an integer n and returns the sum of all the odd positive integers less than or equal to n.