Computer Science, asked by addyrocks1094, 1 year ago

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 Anonymous
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
addyrocks1094: ok bro
addyrocks1094: clear ur matter
addyrocks1094: bye bro
ayushkumar7171: bye bye and have a nice day
addyrocks1094: sm 2 u
addyrocks1094: bro
ayushkumar7171: okay thanks and bye
pathakak9708: thanks friends for truat on me
pathakak9708: trust on me
Similar questions