fork download
  1. #include<stdio.h>
  2.  
  3.  
  4.  
  5. int main(){
  6.  
  7. int length, breadth;
  8.  
  9. printf("What is the length of the rectangle\n"); scanf("%d", &length);
  10.  
  11. printf("What is the breadth of the rectangle\n"); scanf("%d", &breadth);
  12.  
  13. printf("The area of your rectangle is %d", length*breadth);
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 5280KB
stdin
5
2
stdout
What is the length of the rectangle
What is the breadth of the rectangle
The area of your rectangle is 10