0

Create a TTriangle class

Create a TTriangle class with virtual methods for calculating the area and perimeter. Based on this class, create classes representing equilateral, rectangular and isosceles triangles. Randomly create a certain number of triangles of each type so that their total number is equal to n . For equilateral and rectangular, calculate the sum of the areas, and for isosceles – the sum of all the perimeters

17th Jan 2023, 10:18 AM
Алина Конькова
1 Answer
+ 7
Алина Конькова , > what kind of issue do you have? > please also link your code here
17th Jan 2023, 10:37 AM
Lothar
Lothar - avatar