Following program shows you how to take a number as input and calculate the square root of given number.
In this program we get input from user and calculate square root using
var input = parseInt(prompt("Enter a number:")); var result = Math.sqrt(input) console.log("Square root of " + input + " is: " + result);
Enter a number: 64 Square root of 64.0 is: 8.0
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