The exact code would depend on the programming language you are using, but the basic principle would be:
1. have the width and height inputted to the program
2. double both and add together
3. output the result
to find area and perimeter of a rectangle
write an algorithm and draw a flow chart to find perimeter of a square
There is no reason for the perimeter of a triangle to have any relation to the perimeter of an unrelated rectangle!
the perimeter of a rectangle is calculated by : 2*(l+b)
The length of a rectangle is twice its width. If the perimeter of the rectangle is , find its area.
find the perimeter and area of a rectangle that is 15cm long and 5cm wide
the length of a rectangle is 5 more then the width. Find the perimeter and the area of the rectangle
To find the perimeter you add and to find the area we multiply.
Square is a special case of a rectangle and the same formula may be used to find the perimeter
Write an algorithm to find the root of quadratic equation
To find the perimeter of a rectangle you must calculate the lengths of each of the sides and add them all together.
The perimeter of any 2D shape is the sum of all of the individual sides. For example: the perimeter of a rectangle is = length of rectangle (top) + length of rectangle (bottom) + height of rectangle (Left) + height of rectangle (Right)