Створити програму для обчислення площі круга за введеним
радіусом , використовуючи функцію модуля math. для Thonny
Ответы
Ответ дал:
0
Ответ:
import math
def circle_area(radius):
return math.pi * radius ** 2
radius = float(input("Enter the radius of the circle: "))
print("The area of the circle is", circle_area(radius))
Ответ дал:
0
import math
radius = float(input("Enter the radius of the circle: "))
area = math.pi * radius ** 2
print("The area of the circle is", area)
Вас заинтересует
1 год назад
1 год назад
1 год назад
2 года назад