subject
World Languages, 13.12.2021 22:00 noahook84

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

ansver
Answers: 2

Other questions on the subject: World Languages

image
World Languages, 22.06.2019 13:30, lolz55678
What is a self-evaluation for speech?
Answers: 1
image
World Languages, 23.06.2019 20:00, destinywashere101
How do parallels between the characterization of the narrator and the father point to a theme of the story bile?
Answers: 1
image
World Languages, 25.06.2019 04:10, Yasminl52899
Rules and regulations for governing ancient people’s lives is called
Answers: 2
image
World Languages, 25.06.2019 06:30, angelnjones42
What would be the mass of an atom with 8 protons and 8 neutrons? a) 16 amu b) 8 amu c) 64 amu
Answers: 1
You know the right answer?
Write a program that asks the user to enter two integer numbers X and Y. The program halves each num...

Questions in other subjects:

Konu
Mathematics, 11.03.2021 18:50
Konu
Mathematics, 11.03.2021 18:50
Konu
Mathematics, 11.03.2021 18:50
Konu
Mathematics, 11.03.2021 18:50