diff --git a/AreaandPerimeterofRectangle.cpp b/AreaandPerimeterofRectangle.cpp new file mode 100644 index 0000000..053ed4c --- /dev/null +++ b/AreaandPerimeterofRectangle.cpp @@ -0,0 +1,19 @@ +#include +using namespace std; + +struct rectangle { + int l; + float b; +}; +int main() { + struct rectangle x; + cout << "enter the lenght :"; + cin >> x.l; + cout << "enter the breadth :"; + cin >>x.b; + cout << "\nArea = "<< x.l * x.b; + cout << "\nPerimeter = " << 2*(x.l + x.b); + cout <<"\n"; + + return 0; +}