#include<iostream>
using namespace std;

double getLength();
double getWidth();
double getArea(double,double);
void displayData(double,double,double);

int main()
{
	double length,width,area;
	
	length=getLength();
	width=getWidth();
	getArea(length,width);
	area=getArea(length,width);
	displayData(length,width,area);
}

double getLength()
{
	double a;
	cout<<"Enter the length of the rectangle\t:";
	cin>>a;
	return a;
}

double getWidth()
{
	double b;
	cout<<"Enter the width of the rectangle\t:";
	cin>>b;
	return b;
}

double getArea(double length,double width)
{
	double c;
	c=length * width;
	return c;
}

void displayData(double length,double width,double area)
{
	cout<<"Length\t:"<<length;
	cout<<"\nWidth\t:"<<width;
	cout<<"\nArea\t:"<<area;
}
