fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. double l,b,ar,perim;
  6. printf("enter length of recatangle\n");
  7. scanf("%f",&l);
  8. printf("enter breadth of recatangle");
  9. scanf("%f",&b);
  10. ar=l*b;
  11. perim=2*(l+b);
  12. printf("area is %f",ar);
  13. printf("\n perimeter is %f",perim);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 4536KB
stdin
Standard input is empty
stdout
enter length of recatangle
enter breadth of recatanglearea is 0.000000
 perimeter is 0.000000