answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

βˆ™ 13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you write algorithm to find perimeter of rectangle?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do i write an algorithm using pseudocode especially when it concerns salary and net salary?

to find area and perimeter of a rectangle


How do you find the perimeter of a triangle with the perimeter of a rectangle?

There is no reason for the perimeter of a triangle to have any relation to the perimeter of an unrelated rectangle!


How to find a perimeter of the 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 54y find its area?

The length of a rectangle is twice its width. If the perimeter of the rectangle is , find its area.


How can you find the answer for the perimeter and area of a rectangle?

find the perimeter and area of a rectangle that is 15cm long and 5cm wide


Write an algorithm and draw flowchart to calculate the perimeter of a square?

Sure, honey. First, let's keep it simple. To calculate the perimeter of a square, you just need to multiply the length of one side by 4. So, if the side length is "s", the formula is 4s. As for the flowchart, draw a square with "s" labeled on one side, then an arrow pointing to a box that says "Perimeter = 4s". Done and done, darling.


The length of a rectangle is 5 more then the width Find the perimeter and the area of the rectangle?

the length of a rectangle is 5 more then the width. Find the perimeter and the area of the rectangle


How to find the perimeter and area of a rectangle?

To find the perimeter you add and to find the area we multiply.


Can you use he formula for the perimeter of a rectangle to find the perimeter of any square?

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?

Write an algorithm to find the root of quadratic equation


How do yo find perimeter of a rectangle?

To find the perimeter of a rectangle you must calculate the lengths of each of the sides and add them all together.


How do you find out the perimeter?

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)