java programing

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

java programing

Post by answerhappygod »

java programing
Java Programing 1
Java Programing 1 (39.35 KiB) Viewed 21 times
Write a recursive method that takes two integer number start and end. The method int evensquare2 (int start, int end) should return the square of even number from the start number to the end number. Then, write the main method to test the recursive method. For example: If start = 2 and end = 4, the method calculates and returns the value of: 22 * 42 = 64 If start = 1 and end = 2, the method calculates and returns the value of: 22 = 4 Sample I/O: Enter Number start: 2 Enter Number end: 4 Result = 64 Enter Number start: 1 Enter Number end: 2 Result = 4
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply