Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
atharvaagrawal opened this issue Apr 2, 2020 · 3 comments
Open

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

atharvaagrawal opened this issue Apr 2, 2020 · 3 comments

Comments

@atharvaagrawal
Copy link
Owner

Input:

Enter any number: 16

Output:

Number: 4.0

@Pranjal-Sancheti
Copy link

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

@Libin-Lijo
Copy link

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

@megsameghana
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants