Answer to Question #16701 in C++ for tend

Question #16701
c++ coding for area of rectangle
1
Expert's answer
2012-10-17T10:20:09-0400
#include<iostream>

#include<conio.h>

using namespace std;




int main()

{

float length, width, area;

cout << "Enter The Length Of The Rectangle: ";

cin >> length;

cout << "Enter The Width Of Rectangle: ";

cin >> width;

area = length*width;

cout <<"The area of the rectangle is : "<< area << endl;

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
APPROVED BY CLIENTS