Input
Output
#include <iostream> using namespace std; class Rectangle{ public: int length=5,breadth=7; float area; Rectangle() //constructor { cout << "Enter the length and breadth value: " ; cout << length << " "<< breadth << endl; cout << "Area of the Rectangle: "; area= length * breadth; cout << area; } }; int main(){ Rectangle r1; return 0; }