Question: USING HTML/JAVASCRIPT there are two input forms, number 1: and number 2: 1. User should be allowed to input two numbers in the range of

USING HTML/JAVASCRIPT

there are two input forms, number 1: and number 2:

1. User should be allowed to input two numbers in the range of 2 and 100 (including 2 and 100). If any input number is invalid, display an error message in text-danger color. Below are two examples: in case 1, the first input is 120 that is bigger than 100. In case 2, the 2nd input is -2 that is below 2.

2. Find all prime numbers between the two inputs (including the inputs) and report the count (using text-info color) and list of all prime numbers (using text-success color). The inputs can be in any order, i.e., number 1 could be bigger or smaller than number 2. Following are three examples for input pairs of {20, 21}, {2, 10}, and {90, 77}. In the third case, the number1 of 90 is bigger than number 2 of 77.

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!