Question: Q2. Write a program which will take two integer numbers of (10 and 20) and will display the following output on the srceen: First row
Q2. Write a program which will take two integer numbers of (10 and 20) and will display the following output on the srceen: First row contains odd numbers between x and y (using for loop). Second row contains all even numbers between x and y in reverse order (using while loop). Third row contains all number dividible by n, (where n=5 ) (using do-while loop) Lastly come up with the output after the written program (40 MARK)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
