Question #325019

Compute and display the output of the Area (A) of a rectangle, based on


inputted value for length (L) and the width (W).


Formula: A = L * W



Flowchart to C++ code

Expert's answer





#include<iostream>


using namespace std;


int main()
{
	float L,W;


	cout<<"Enter L: ";
	cin>>L;
	cout<<"Enter W: ";
	cin>>W;
	float  A = L * W;
	cout<<"The area (A) of a rectangle = "<<A<<"\n\n";




	system("pause");
	return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS