12. Using any loop structure, write a JavaScript method validate 0 which simulates following behavior. Get two numbers as inp 12. Using any loop structure, write a JavaScript method validate 0 which simulates following behavior. Get two numbers as input from user (You can use prompt method). 1) If one number is multiple of another number then it should display output “You have entered right numbers” and should stop. 2) If not, it should ask the user to input new pair of values The process will repeat until the first condition is true. Sample output: Enter first No: 2 Enter Second number: 5 Please enter a new pair of values Enter first No: 3 Enter Second number: 9 You have entered the right values.



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *