atharvaagrawal / Python-Challenges

This is Python Practice repository for Python Challenges Solver
1 stars 0 forks source link

002-PROGRAM-TO-FIND-SQUARE-ROOT-OF-A-NUMBER-IN-PYTHON #2

Open atharvaagrawal opened 4 years ago

atharvaagrawal commented 4 years ago

Input:

Enter any number: 16

Output:

Number: 4.0

Pranjal-Sancheti commented 4 years ago

import math no = float(input("Enter any number: ")) squareroot = math.sqrt(no) print("Number: ",squareroot)

Libin-Lijo commented 4 years ago

n=float(input("enter a number")) Sqrt=n**(1/2) Print("number: ,sqrt)

megsameghana commented 4 years ago

n=float(input("enter an number")) if n<0: print("enter an valid number") else sqrt=n**0.5 print("number:",sqrt)