50 балів!!!
Допоможіть будь ласочка!!!
Python. Скласти програму з функцією для розрахунку площі прямокутника а і в . Формула прямокутника S=ab
Фото​

Приложения:

Ответы

Ответ дал: leprekon882
3

def rectangle_area(a, b):

return a * b

# Define the length and width of the rectangle

length = 5

width = 10

# Calculate the area of the rectangle

area = rectangle_area(length, width)

# Print the area of the rectangle

print("Area of the rectangle: ", area)

Приложения:
Ответ дал: p15
2

Ответ:

def S(a,b):

   return a*b

print('S=',S(int(input('a= ')),int(input('b= '))),'см²')

Объяснение:

Похожие вопросы