Open atharvaagrawal opened 4 years ago
import math no = float(input("Enter any number: ")) squareroot = math.sqrt(no) print("Number: ",squareroot)
n=float(input("enter a number")) Sqrt=n**(1/2) Print("number: ,sqrt)
n=float(input("enter an number")) if n<0: print("enter an valid number") else sqrt=n**0.5 print("number:",sqrt)
Input:
Enter any number: 16
Output:
Number: 4.0