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

11y ago
This answer is:
User Avatar

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

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.


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.


Write the perimeter of a rectangle?

p=2l+2w


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

write an algorithm and draw a flow chart to find perimeter of a square


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.


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.


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

PRINT "Give me the rectangle's length.": Input L PRINT "Give me the rectangle's width.": Input W PRINT "The rectangle's area is "; L x W PRINT "The rectangle's perimeter is "; 2 x (L + W) PRINT "You've been a great audience. I'm here til Thursday. Don't forget to tip your waiter. Have a nice day."


How do you write Square program using vb?

write a vb program to find the magic square


The perimeter of a square depends on the length of its sides A square with a side length of 4 meters has a perimeter of 16 meters A square with a side length of 6 meters has a perimeter of 24 meters?

The perimeter of a square is 400 meters. write an equation for the perimeter and solve for the length of one side


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 write a program to find the area and perimeter of a rectangle?

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