Question 3: a- Write a method called evenToZero that takes as parameter an integer 'limit'. The method prints on the screen all the even numbers from 'limit' down to 0 (inclusive). using java Use the...


Question 3:<br>a- Write a method called evenToZero that takes as parameter an integer 'limit'. The method prints on the<br>screen all the even numbers from 'limit' down to 0 (inclusive).<br>using<br>java<br>Use the following method header:<br>public static void evenToZero(int limit)<br>b- Use the above method to write a test program which reads from the user a positive integer and prints all<br>the even numbers from this integer down to 0 via invoking the method evenToZero.<br>

Extracted text: Question 3: a- Write a method called evenToZero that takes as parameter an integer 'limit'. The method prints on the screen all the even numbers from 'limit' down to 0 (inclusive). using java Use the following method header: public static void evenToZero(int limit) b- Use the above method to write a test program which reads from the user a positive integer and prints all the even numbers from this integer down to 0 via invoking the method evenToZero.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here