fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int length,breadth;
  6. int area,parameter;
  7. printf("enter the length and breadth\n");
  8. scanf("%d%d",&length,&breadth);
  9. area=length*breadth;
  10. printf("the area of rectangle is %d\n",area);
  11. parameter=2*(length+breadth);
  12. printf("parameter of rectangle is %d\n",parameter);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5320KB
stdin
45
stdout
enter the length and breadth
the area of rectangle is 1474515
parameter of rectangle is 65624