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 07:00
For all machines-not just hammers- the user applies force force to the machine to the machine over a certain distance. a. input b. output c. duo d. none of the above
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
question
Computers and Technology, 23.06.2019 15:30
1. ask the user how many questions are in the quiz. 2. ask the user to enter the key (that is, the correct answers). there should be one answer for each question in the quiz, and each answer should be an integer. e.g., 34 7 13 100 81 3 9 10 321 12 might be the key for a 10-question quiz. you will need to store the key in an array. 3. ask the user to enter the answers for the quiz to be graded. there needs to be one answer for each question. note that these answers do not need to be stored; each answer can simply be compared to the key as it is entered. 4. when the user has entered all of the answers to be graded, print the number correct and the percent correct. 5. add a loop so that the user can grade any number of quizzes with a single key. after the results have been printed for each quiz, ask "grade another quiz? (y/n)." note: you only have one array (the key). you are not creating a new key for each set of quiz answers.
Answers: 3
question
Computers and Technology, 24.06.2019 05:30
Someone plzz me which of these defines a social search? a. asking a search engine a question that is answered by a real person on the other sideb. modifying search results based on popularity of a web pagec.modifying search results based on a ranking of a web page
Answers: 2
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, 19.03.2020 00:00
question
Mathematics, 19.03.2020 00:00
question
History, 19.03.2020 00:00
question
Mathematics, 19.03.2020 00:00
question
Mathematics, 19.03.2020 00:01
Questions on the website: 13722363