Computers and Technology
13.02.2023 16:00
150
344
6
Solved by an expert

By using a do..while loop, write a program that will receive two integers as input,

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
Show Answers
foreignking02
foreignking02
4,8(34 marks)
My thingy is glitching
daijafoster0
daijafoster0
4,4(30 marks)
Pay off car loan for sure 

Popular Questions about the subject: Computers and Technology

Java 3.30 LAB*: Program: Painting a wall (1) Prompt the user to input a wall s...
Computers and Technology
29.03.2020 20:07
Where do animators work? How do companies use web sites? What is an operating system?...
Computers and Technology
01.12.2021 04:32
Why is the work of information security important? How does web design help companies?...
Computers and Technology
31.03.2022 06:13
Name the cell range selected in the given worksheet? plzzz helppppp​...
Computers and Technology
13.04.2022 08:24
If the system has a mechanical advantage of 5 and the load of 350N.What effort...
Computers and Technology
28.02.2023 00:36
ICT worksheet and assignment 1. Define computer 2. List and explain characteristics...
Computers and Technology
09.12.2022 04:58
Que es hipermedia porfavo...
Computers and Technology
26.11.2021 07:59
What is computer generation. name that generations ​...
Computers and Technology
02.03.2022 22:50
Which Of these best describes what a binary digit can store?...
Computers and Technology
27.04.2022 09:56
Name the box where the name of the first cell of the selected range appears? i...
Computers and Technology
04.07.2021 16:24

New questions by subject

True or false, the left lung in larger then the right lung? Plz answer will mark...
Biology
18.10.2021 11:32
The talmud is A. a book about the prophets in the Hebrew Scriptures B. a combination...
Social Studies
03.12.2022 13:47
What is scale factor 10 cm =16 cm...
Mathematics
04.02.2022 16:09
maintains consistency among a set of DFDs by ensuring that input and output data...
Computers and Technology
29.07.2021 13:56
How many cubic feet of concrete are needed to pour 4 cylindrical pillars 5 feet...
Mathematics
26.01.2020 09:20
Ach drop-down menu. plete the statements. 5x – 8(3y + 13) - 1 nt In the first term...
Mathematics
13.01.2020 03:03
24. a. Calculate the work needed to lift a 90-N block of ice a vertical distance...
Physics
21.06.2021 02:25
Basophils increase in number when parasitic invasion occurs. Basophils increase...
Biology
17.12.2022 09:10
#
#
#
#
# #

We expand our knowledge with many expert answers