Draw the flow chart to find the area and perimeter of the rectangle hint:p=2(l+w)
Answers
Answered by
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