11 lines
186 B
Python
11 lines
186 B
Python
import math
|
|
#
|
|
data1 = float(input("Enter a number: "))
|
|
|
|
result = math.sqrt(data1)
|
|
|
|
print(f"result = {result:f} ")
|
|
|
|
result2 = result ** 2
|
|
print(f"square of result2 = {result2:.42f} ")
|
|
|