subject
Computers and Technology, 18.12.2020 19:30 nisha87

By using a do..while loop, write a program that will receive two integers as input, where the 1st number is smaller than the 2nd number. In between the range of the two given numbers, the program should count the numbers that are divisible by 5 and 10. For example,
Input: 1st number = 4 and 2nd number = 12

Solution,
Numbers that are divisible by 5 are 5, 10, 15, 20 and 25.
Numbers that are divisible by 10 are 10 and 20.

Below is the sample input and output for this program:

Enter 1st number: 4
Enter 2nd number: 28

RANGE: FROM 4 TO 28

5 numbers are divisible by 5
2 numbers are divisible by 10

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Read this excerpt from helen keller’s autobiography, the story of my life. have you ever been at sea in a dense fog, when it seemed as if a tangible white darkness shut you in, and the great ship, tense and anxious, groped her way toward the shore with plummet and sounding-line, and you waited with beating heart for something to happen? i was like that ship before my education began, only i was without compass or sounding-line, and had no way of knowing how near the harbour was. "light! give me light! " was the wordless cry of my soul, and the light of love shone on me in that very hour. . the morning after my teacher came she led me into her room and gave me a doll. the little blind children at the perkins institution had sent it and laura bridgman had dressed it; but i did not know this until afterward. when i had played with it a little while, miss sullivan slowly spelled into my hand the word "d-o-l-l." i was at once interested in this finger play and tried to imitate it. when i finally succeeded in making the letters correctly i was flushed with childish pleasure and pride. running downstairs to my mother i held up my hand and made the letters for doll. i did not know that i was spelling a word or even that words existed; i was simply making my fingers go in monkey-like imitation. in the days that followed i learned to spell in this uncomprehending way a great many words, among them pin, hat, cup and a few verbs like sit, stand and walk. based on this excerpt, which words best describe helen keller?
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
question
Computers and Technology, 23.06.2019 15:20
In a game with three frames, where will the objects on layer 1 appear? a. next to the play area b. in the middle of the game c. behind everything else d. in front of everything else
Answers: 1
You know the right answer?
By using a do..while loop, write a program that will receive two integers as input, where the 1st nu...
Questions
question
Mathematics, 11.09.2021 01:00
question
Mathematics, 11.09.2021 01:00
question
Mathematics, 11.09.2021 01:00
question
English, 11.09.2021 01:00
Questions on the website: 13722367