jhyatt1017
7/18/2018 - 3:28 AM

Area of Rectangle

Measures the area of a rectangle by multiplying the length x width.

#include <iostream>

const double pi = 3.14159;

int main()
{
    float length, width, area;

    std::cout << "Enter The Length Of The Rectangle: ";
    std::cin >> length;
    std::cout << "Enter The Width Of Rectangle: ";
    std::cin >> width;
    area = length * width;

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

    return 0;
}