update
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
number = float(input('Enter number with lots of decimal number : '))
|
||||
print(round(number*2, 2))
|
||||
|
||||
#print(round(number*2, 2))
|
||||
print(round(number*2))
|
||||
|
@@ -1,4 +1,5 @@
|
||||
import math
|
||||
|
||||
number = int(input('Enter number over 500 : '))
|
||||
print(round(math.sqrt(number)))
|
||||
#print(round(math.sqrt(number)))
|
||||
print(round(math.sqrt(number), 2))
|
@@ -1,3 +1,3 @@
|
||||
import math
|
||||
|
||||
print(round(math.pi, 5))
|
||||
dig = int(input("how many digits you want: "))
|
||||
print(round(math.pi, dig))
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import math
|
||||
|
||||
radius = float(input('Enter circle radius : '))
|
||||
# ** 表示幂计算
|
||||
area = math.pi * (radius**2)
|
||||
print(area)
|
||||
|
Reference in New Issue
Block a user