Lecture for 10/20/2022
This commit is contained in:
parent
e4cfe759e6
commit
9f2a91d67d
12 changed files with 423 additions and 0 deletions
11
lecture20261020/squareroot.py
Normal file
11
lecture20261020/squareroot.py
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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} ")
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue