Answer to Question #325019 in C++ for Jaye

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

1
Expert's answer
2022-04-06T15:39:52-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