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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started