Question: Write a C++ program that calculates and displays the area andperimeter of a rectangle. The program should prompt the user to enter width (W) and
Write a C++ program that calculates and displays the area andperimeter of a rectangle. The program should prompt the user to enter width (W) and length (L) and should be able to handle decimal values. Formula to calculate A(area) and P (perimeter):A (area) = W (width) x L (length)P (perimeter) = (W + L) * 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
