write a program to input the length and breadth of a rectangle and find the perimeter of that square whose area is same as the area of the rectangle
Answers
Answered by
4
Hi Sweetheart
#include <stdio.h>
void main()
{
int length, breadth, area, perimeter;
printf("Enter length : ");
scanf("%d",&length);
printf("Enter breadth : ");
scanf("%d",&breadth);
area = length * breadth;
perimeter = 2 * (length + breadth);
printf("\nArea of rectangle : %d\n",area);
printf("Perimeter of rectangle : %d\n",perimeter);
}
you looking so cute..i want friendship
addyrocks1094:
oooo that's the matter
Similar questions
India Languages,
7 months ago
Hindi,
7 months ago
English,
7 months ago
Geography,
1 year ago
Social Sciences,
1 year ago