answersLogoWhite

0


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

}

User Avatar

Wiki User

โˆ™ 2013-01-27 21:03:19
This answer is:
User Avatar
Study guides

Data Science

โžก๏ธ
See all cards
4.8
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
5 Reviews

Add your answer:

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

Can you write the formula for computing the perimeter of a rectangle?

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


How do you write a program to find the area and perimeter of a rectangle?

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


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.


How to Write an expression for the perimeter of a rectangle with a sides of 3x and 8y?

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


Write the perimeter of a rectangle?

p=2l+2w


How do you write the perimeter of a rectangle in sentence form?

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.


The length of a rectangle is 13.6cm the perimeter of the rectangle is 37.8cm what is the width?

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


Program that prompts the user to input the length and width of a rectangle and then prints the rectangle's area and perimeter?

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


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

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


Write a program to input length and breadth of a rectangle calculate and print its perimeter and area?

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


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.


How do you write Square program using vb?

write a vb program to find the magic square

People also asked