#include<iostream>
#define PI 3.1416
using namespace std;

class Shape{
    public:
    float area, volume;
    void display(){
        cout<<"Area: "<<area<<endl;
        cout<<"Volume: "<<volume<<endl;
    }
};

class Rectangle:public Shape{
    float length;
    float width;
    float height;
    public:


    Rectangle(float l, float w, float h){
        length=l;
        width=w;
        height=h;
    }
    void calculate(){
        area=length*width;
        volume=length*width*height;
       display();
    }
    
};

class Circle:public Shape{
    float radius;
    float height;
    public:
    Circle(float r, float h){
        radius=r;
        height=h;
    }
    void calculate(){
        area=PI*radius*radius;
        volume=PI*radius*radius*height;
        display();
        
    }
};

class Triangle:public Shape{
    float base, height;
    float length ;
    public:
    Triangle(float b, float h, float l){
        base=b;
        height=h;
        length=l;
    }    

    void calculate(){
        area=0.5*height*base;
    
        volume=0.5*(base*height*length);
    
        display();
    }
};

int main(){
    Circle r(4.0,3.0);
    r.calculate();
   
}