Answer to Question #324577 in C++ for Marj

Question #324577

Problem:

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


1
Expert's answer
2022-04-06T05:07:35-0400




#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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS