Answers for "C++ Area and Perimeter of a Rectangle"

C++
0

C++ Area and Perimeter of a Rectangle

float length,width;

    cout<<"Enter the length: ";
    cin>>length;
    cout<<"Enter the width: ";
    cin>>width;

    cout<<"The Perimeter of the Rectangle is "<<(2*length)+(2*width)<<endl;
    cout<<"The Area of the Rectangle is "<<length*width<<endl;
Posted by: Guest on March-10-2022

Code answers related to "C++ Area and Perimeter of a Rectangle"

Browse Popular Code Answers by Language