Answer to Question #208916 in C++ for raine09

Question #208916

Compute and display the output of the Area (A) of a rectangle, the length (L) is 10 and the width (W) is 15. 


1
Expert's answer
2021-06-20T08:11:23-0400
#include <iostream>

int main()
{
    const int L = 10;
    const int W = 15;

    const int A = L * W;

    std::cout << "Area of the rectangle is " << A << "\n";

    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