Предмет: Информатика, автор: voros3852

Створити програму для обчислення площі круга за введеним
радіусом , використовуючи функцію модуля 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)

Похожие вопросы
Предмет: Математика, автор: turikyar
Предмет: География, автор: nastjaskremetova2012