Following program shows you how to take a number as input and calculate the square root of given number.
In this program we get number from user and calculate square root using
import math number = float(input("Please enter a number:")) result = math.sqrt(number) print("Squre root of ", number, " is: ", result)
Please enter a number: 16 Squre root of 16.0 is: 4.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
Unable to start Spring Boot + PostgreSQL App, Getting org.postgresql.util.PSQLException: FATAL: password authentication failed for user