14*r*r); } }; class rectangle { public: int l,b,ar; void rec() { cout<<"\n\nEnter the length and width of the rectangle:\n";
cin>>l>>b; ar=(l*b); } }; class square { public: int s,as; void sqr() { cout<<"\n\nEnter the side of the square:\n"; cin>>s; as=(s*s); } }; class display:public circle,public rectangle,public square { public: void show() { cout<<"\n\nThe area of the circle is :"<<ac; cout<<"\n\nThe area of the rectangle is :"<<ar; cout<<"\n\nThe area of the square is :"<<as; } };