Computer Science, asked by rajasribavani617, 1 month ago

2. Write a python program using class to accept three sides of a triangle and print its area.​

Attachments:

Answers

Answered by yashsaxena8055
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