Horje
C++ Area of a Rectangle Code Example
C++ Area of a Rectangle
    float length, width, area, perimeter;

    cout << "Input the length of a rectangle: ";
    cin >> length;
    cout << "Input the width of a rectangle: ";
    cin >> width;

    area = length * width;
    cout << "The area of a rectangle is " << area << endl;

    perimeter = length + length + width + width; // also >  2*(length + width)
    cout << "The perimeter of a rectangle is " << perimeter << endl;




Cpp

Related
C++ Arithmetic Operators Code Example C++ Arithmetic Operators Code Example
retourner pointeur de type qstringlist qt Code Example retourner pointeur de type qstringlist qt Code Example
how to set a string equal to another string cpp Code Example how to set a string equal to another string cpp Code Example
uri online judge 3145 solution in c++ Code Example uri online judge 3145 solution in c++ Code Example
ue4 bind function to button clicked c++ Code Example ue4 bind function to button clicked c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10