





/*
This is a program to compute the area of a 
rectangle. 
*/


#include<stdio.h>

int main(void){
  float l_bot_x, l_bot_y, r_bot_x, r_bot_y;
  float l_top_x, l_top_y, r_top_x, r_top_y;
  float height, width;

  printf("\n Give the coord of the left bottom corner::>> ");
  scanf("%f %f",&l_bot_x, &l_bot_y);

  printf("\n Give the coord of the right bottom corner::>> ");
  scanf("%f %f",&r_bot_x, &r_bot_y);

  printf("\n Give the coord of the left top corner::>> ");
  scanf("%f %f",&l_top_x, &l_top_y);

  printf("\n Give the coord of the right top corner::>> ");
  scanf("%f %f",&r_top_x, &r_top_y);
  
  /* Compute the height and width of the rectangle. */
  height = l_top_y - l_bot_y; 
  width = r_bot_x - l_bot_x;  

  printf("\n The area of the rectangle::>> %f \n", height*width);
  return 0;
}
