Write a cpp program class named rectangle ,calculate the area and perimeter as its functions.create 3 objects of the rectangle class which calls three different types of construction(c++)
Answers
Answered by
0
Answer:
#include<conio.h>
#include<iomanip.h>
#include<upstream.h>
#include<math.h>
void main()
{
int area, perimeter;
clrscr();
cout<<"enter any number"<<endl;
cin<<a<<b;
cout<<"find perimeter and and area"<<endl;
perimeter=2(l+b);
area=l*b;
cout<<"enter the answer"<<endl;
getch();
}
Similar questions