Following program shows you how to take two numbers from user and add those two numbers.
In this program we take two numbers from user using
prompt method and add those two numbers
var input1 = parseInt(prompt("Enter first number:")); var input2 = parseInt(prompt("Enter second number:")); var result = input1 + input2; console.log("Sum of the given two numbers is: " + result);
Enter first number: 20 Enter second number: 30 Sum of the given two numbers is: 50
On By Navya
Getting 'No EntityManager with actual transaction available for current thread' exception while removing some data
How to fix Found use of deprecated [org.hibernate.id.SequenceGenerator] sequence-based id generator; use org.hibernate.id.enhanced.SequenceStyleGenerator instead