220k views
5 votes
Write a program to calculate and return total surface area of a box using FUNCTION _END FUNCTION.​

1 Answer

5 votes

Answer:

def funct1():

h=int(input("Enter height of the box"))

w=int(input("Enter the width of the box"))

L=int(input("Enter the length of the box"))

surface_area=2*(h*w + h*L + w*L)

return surface_area

a=funct1()

print(a)

Step-by-step explanation:

Please check the answer section.

User Smallufo
by
7.1k points