Computer Science, asked by nirbhyasharmaoppo123, 7 days ago

Write the c o d e in HTML through java script to accept 2 numbers and display the sum with state ment​

Answers

Answered by anshbagul79
1

Answer:

Example 2: Add Two Numbers Entered by the User

const num1 = parseInt(prompt('Enter the first number ')); const num2 = parseInt(prompt('Enter the second number ')); Then, the sum of the numbers is computed. const sum = num1 + num2; Finally, the sum is displayed.

Explanation:

I hope this helps for you

plz Mark me as brainliest

Similar questions
Science, 9 months ago