Write a program that asks the user to enter two integer numbers X and Y. The program halves each number between X and Y then prints the values on the screen. For example:
If X=5 and Y=7, the program prints the following values 5/2=2.5, 6/2=3 and 7/2=3.5
Your program also counts the values that are greater or equal to 3.
Sample run 1:
Enter X and Y: 5 7
2.5 3 3.5
Values greater or equal to 3 are 2
Sample run 2:
Enter X and Y: 15 10
5 5.5 6 6.5 7 7.5
Values greater or equal to 3 are 6
Please let us know your comments regarding the correct answer to the question. Each of your comments will be evaluated by us and correct comments will be shared.