Question: Write a program that will take two integer numbers and will display the following output on the screen: The first row contains an Odd number

 Write a program that will take two integer numbers and will

Write a program that will take two integer numbers and will display the following output on the screen: The first row contains an Odd number between X and Y using FOR LOOP The second row contains all Even numbers between X and Y in reverse order using WHILE LOOP The third row contains all numbers divisible by n, entered by the user using DO-WHILE LOOP For Instance Enter Two numbers: 1020 201816141210 101520

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!