#include <cstring>
#include <iostream>
using namespace std;
class Shape {
protected:
double width;
protected:
double height;
public:
void showDim() {
cout << "Width and height are " << width << " and " << height << endl;
}
};
class Triangle : public Shape {
public:
char style[20];
double area() { return width * height / 2; }
void showStyle() { cout << "Triangle is " << style << endl; }
};