2. Write a python program using class to accept three sides of a triangle and print its area.
Attachments:
Answers
Answered by
1
Answer:
class Area:
def __init__(self, a,b,c):
self.a = a
self.b=b
self.c=c
def area(self):
print(self.a*self.b*self.c)
ans= Area(10,20,30)
ans.area()
Similar questions