Question: Write a JavaScript program that reads three integers named start, end, and divisor from three textfields. Your program must output to a div all the

Write a JavaScript program that reads three integers named start, end, and divisor from three textfields. Your program must output to a div all the integers between start and end, inclusive, that are evenly divisible by divisor. The output integers must be separated by spaces. For example, if a user entered 17, 30, and 5, your program would output "20 25 30" (without the quotes) because those are the only integers between 17 and 30 (including 17 and 30) that are evenly divisible by 5.

DO NOT SUBMIT CODE THAT CONTAINS AN INFINITE LOOP. If you try to submit code that contains an infinite loop, your browser will freeze and will not submit your exam to I-Learn.

If you wish, you may use the following HTML code to begin your program.

    Title    Start:  End:  Divisor:   

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!