Question: by java Task 4 sum: Write a method called sum Nums that accepts two integer parameters. The method returns the sum of the numbers that
Task 4 sum: Write a method called sum Nums that accepts two integer parameters. The method returns the sum of the numbers that are between the two given integers. For example, the call sumNums (1,3) should return 6 because 1+2+3-6 The call sumNums (3,1) should also return 6. Complete this by having your main method call your method with the values (1,100) and (13, 2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
