Информатика, вопрос задал voros3852 , 1 год назад

Створити програму для обчислення площі круга за введеним
радіусом , використовуючи функцію модуля math. для Thonny

Ответы на вопрос

Ответил goomyyy
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))

Ответил leprekon882
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)

Новые вопросы