I need help to complet this. thank you... Write an algorithm of a function that
ID: 3617547 • Letter: I
Question
I need help to complet this. thank you...Write an algorithm of a function that takes two integers,upper and lower, and prints all the even numbers between them indescending order.
The function has two input parameters:upper: an even integerlower: an integer less than or equal to upperEach even number should be on a line by itself (each number followed by an end-of-line character).Examples:If upper is 8 and lower is 4, the output should be864If upper is 10 and lower is 5, the output should be1086I need help to complet this. thank you...
Write an algorithm of a function that takes two integers,upper and lower, and prints all the even numbers between them indescending order.
Explanation / Answer
Here is more generalizedalgorithm Prompt the user to enter two integers i.e. lowerand upper limits if (lower limit is greater than upper limit) then tell the user that "your lower limit is wrong" else call the function EVEN-NUMBERS(lower limit, upper limit) void EVEN-NUMBERS(int lower limit, int upper limit) for ( int i = upper limit ; iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.