Computer Science, asked by shivabupathi9683, 1 day ago

Draw the flow chart to find the area and perimeter of the rectangle hint:p=2(l+w)

Answers

Answered by samarthkrv
0

Answer:

#include <stdio.h>

int main() {

   double l , w ,area , p;

   printf("Enter the length:");

   scanf("%lf" , &l);

   printf("Enter the width:");

   scanf("%lf" , &w);

   area = l * w;

   p = 2 * (l+w);

   printf("The area is: %lf \n" , area);

   printf("The perimeter is: %lf \n" , p);

   return 0;

}

Explanation:

Similar questions