Best Answer

#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");

}

Study guides

☆

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

Write your answer...

Submit

Still have questions?

Related questions

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

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

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

The perimeter of a rectangle is the sum of the four sides.

p=2l+2w

The perimeter of a rectangle, like the perimeter of any closed two-dimensional figure, is the distance around it. The perimeter of the rectangle is the sum of two lengths plus two widths.

Write an equation for the perimeter, and solve it. Remember that the perimeter is the sum of all four sides.

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

Write a logarithms and flowchart t find area and perimeter of square

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

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.

write a vb program to find the magic square

People also asked