Calculate area of rectangle - C Program

C program to calculate area of rectangle.

Solution:

Formula: Area of Rectangle = length * breadth.

#include<stdio.h>
int main()
{
     int length, breadth, rect_area;
     printf("Enter Length  : ");
     scanf("%d",&length);
     printf("Enter Breadth : ");
     scanf("%d",&breadth);
     rect_area = length * breadth;
     printf("\nArea of Rectangle = %d",rect_area);
     return 0;
}


Output:

area of rectangle