SOP 2: Create JavaScript program for the following using appropriate variables, JavaScript inbuilt functions and control structures.
To accept two positive or negative numbers and check whether they are equal or not.
Hint: In head section create a function same () in that check No both nos are same if same then alert same else not same.
In body section Prompt to enter 2 Nos. stored in two different variables & then call function same ().
To accept number and display square of it.
Hint: Prompt to enter a No. stored in a variable & then display with document. Write No * No To check whether the accepted integer is multiple of 3 or multiple of 7.
Hint: In head section create a function multi () in that use if (No % 3 && No % 7) alter nos is multiple of both 3 & 7 else nos is not multiple of both 3 & 7
In body section Prompt to enter 2 Nos. stored in two different variables & then call function multi
Answers
Answered by
0
Answer:
hope these were help you...
please mark me as Brainlist..
Attachments:
Similar questions
English,
1 month ago
English,
1 month ago
Social Sciences,
1 month ago
English,
2 months ago
Math,
2 months ago
Accountancy,
9 months ago
Math,
9 months ago
Math,
9 months ago