#include<iostream>
using namespace std;
#include"polygon.h"
#include"rectangle.h"
#include"triangle.h"

int main()
{
	rectangle r;
	triangle t;
	int q,w;
    cout<<"For count aera rectangle and tringle \n";
	cout<<"\nEnter two value \n";
		
	cin>>q;
	cout<<endl;
	cin>>w;
	
	r.set(q,w);

	
	t.set(q,w);

	
	
	cout<<"\n area triangle="<<t.area();;
	cout<<"\n area rectangle="<<r.area();

    cout<<endl;
	return 0;

}
