fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4.  
  5. int length,breadth,perimeter,area;
  6.  
  7. printf("Enter the value of length:");
  8. scanf("%d", &length);
  9. printf("Enter the value if breadth:");
  10. scanf("%d", &breadth);
  11. area=length*breadth;
  12. perimeter=2*(length+breadth);
  13.  
  14. printf(" The area of rectangle is :%d\n",area);
  15. printf("the perimeter pf the recatangle is :%d\n",perimeter);
  16.  
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5316KB
stdin
Standard input is empty
stdout
Enter the value of length:Enter the value if breadth: The area of rectangle is :1633957184
the perimeter pf the recatangle is :2000064596