17 lines
270 B
C
Raw Permalink Normal View History

2021-03-27 15:33:25 -04:00
#ifndef TRIANGLEH
#define TRIANGLEH
class Triangle {
private:
double base;
double height;
public:
void SetBase(double userBase);
void SetHeight(double userHeight);
double GetArea() const;
void PrintInfo() const;
};
#endif