fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. double l,b,ar,p;
  6. printf("Enter length of the rectangle\n");
  7. scanf("%f",&l);
  8. printf("\nEnter breadth of the rectangle\n");
  9. scanf("%f",&b);
  10. ar=l*b;
  11. p=2*(l+b);
  12. printf("The area oof the rectangle is %f",ar);
  13. printf("\nThe perimeter of the rectangle is %f",p);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 4452KB
stdin
25.5
3.14
stdout
Enter length of the rectangle

Enter breadth of the rectangle
The area oof the rectangle is 0.000000
The perimeter of the rectangle is 0.000000