Write a program to find square and square root of a given number. The program should accept the input from user and displays the results in a separate window in python
Answers
Answered by
1
Answer:
import math
num=float(input("Enter any number:"))
sqrt=math.sqrt(num)
print("The square root of %0.3f is %0.3f"%(num,sqrt))
Similar questions
Social Sciences,
5 months ago
Science,
5 months ago
Computer Science,
5 months ago
Sociology,
11 months ago
Biology,
1 year ago
Math,
1 year ago