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

by java  by java Task 4 sum: Write a method called sum Nums

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!