answersLogoWhite

0


Best Answer

CLS

PRINT "PROGRAM: Calculate both perimeter/area of rectangle"

PRINT

INPUT " Length"; length

INPUT "Breadth"; breadth

PRINT

PRINT "Perimeter: "; 2 * (length + breadth)

PRINT " Area: "; length * breadth

END

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

A Qualrilateral is any 4 sided shape which does NOT have a pair of sides which are parallel to each other , and usually has no two sides of the same length. ANSWER:- There is no formula for the area of a quadrilateral, however, the simplest way to calculate it's area , is to draw a diagonal line within the quadrilateral, from any corner, to the opposite corner. You now have 2 Triangles. Measure the Base & Altitude of these triangles, then calculate each area using the Formula:- Area= 1/2 base times altitude. Alternatively you can surround the quadrilateral with a true Rectangle (2 pairs of parallel sides) calculate the area of this surrounding rectangle, then calculate the area of the 4 triangles which lie outside the quadrilateral. Your answer will be, the total of the 4 triangles, subtracted from the area of the surrounding rectangle.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Rem to Find area and rectangle of a rectangle

Input "Length?",l

Input"Breadth?",b

let area=l*b

let perimeter=2*l+b

?area

?perimeter

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

Well, i have no idea what all the extra letters are for, but there is no perimeter formula, all you do is add the sides up...

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

The perimeter of a rectangle is the sum of its four sides. Perimeter= 2l+2w

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

To find the perimeter of any rectangle or square use 2L + 2W or L + L + W + W

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

2 x (L + W) or 2L + 2W

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

2(l+w)

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

base*height

This answer is:
User Avatar

Add your answer:

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

Write a C program to find the area and perimeter of you square ii rectangle?

#include<stdio.h> void main() { float length, breadth, area, perimeter; printf("Enter the length & breadth of a Rectangle\n(length breadth): "); scanf("%f %f",&length,&breadth); area=length*breadth; perimeter=2*(length+breadth); printf(" Area of the Rectangle=%0.3f\n",area); printf("Perimeter of the Rectangle=%0.3f\n",perimeter); printf("(Press ENTER to exit.)"); getch(); printf("\n"); }


The perimeter of a rectangle is 26 feet and tge area is 30 square feet What is the width of the rectangle?

Write two simultaneous equations and solve them. One for the perimeter, one for the area.


A rectangle has a perimeter of 10 ft Write the area A of the rectangle as a function of the length of one side x of the rectangle?

This question has no unique answer. A (3 x 2) rectangle has a perimeter = 10, its area = 6 A (4 x 1) rectangle also has a perimeter = 10, but its area = 4 A (4.5 x 0.5) rectangle also has a perimeter = 10, but its area = 2.25. The greatest possible area for a rectangle with perimeter=10 occurs if the rectangle is a square, with all sides = 2.5. Then the area = 6.25. You can keep the same perimeter = 10 and make the area anything you want between zero and 6.25, by picking different lengths and widths, just as long as (length+width)=5.


The area of a rectangle is 100 inches the perimeter is 40 a second rectangle has the same area but a different perimeter. Is the second rectangle a square?

the area of a rectangleis 100 square inches. The perimeter of the rectangle is 40 inches. A second rectangle has the same area but a different perimeter. Is the secind rectangle a square? Explain why or why not.


If same area in a rectangle does that mean same perimeter?

No. For example, a 4x1 rectangle will have an area of 4 and a perimeter of 10. A 2x2 rectangle will have the same area of 4, but a perimeter of 8.


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.


What is the perimeter of a rectangle with an area of 24cm?

The perimeter of the rectangle is the sum of its 4 sides.


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


What is the effect on the perimeter of a rectangle if the dimension are doubled what is the effect on its area?

Let's take a look at this problem.Rectangle Perimeter = 2(l + w)Rectangle Perimeter =? 2(2l + 2w)Rectangle Perimeter =? (2)(2)(l + w)2(Rectangle Perimeter) = 2[2(l + w)]Thus, we can say that the perimeter of a rectangle is doubled when its dimensions are doubled.Rectangle Area = lwRectangle Area =? (2l)(2w)Rectangle Area =? 4lw4(Rectangle Area) = 4lwThus, we can say that the area of a rectangle is quadruplicated when its dimensions are doubled.


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


Can the perimeter or area of a rectangle ever be an irrational number?

Yes, the perimeter or area of a rectangle can be an irrational number. Thanks


What is the area of a rectangle that its perimeter is 39?

156 It is impossible to calculate the area of a rectangle from its perimeter if no other dimension is known. The area of a rectangle is the product of its length and width, and the perimeter is twice the sum of its length and width.