C Program to find area of rectangle

User enters integer values for variable 'length' and 'breadth', finds the area of rectangle with formula $$area = length * breadth$$ The value stored at variable 'area' is printed on the console.

Program

/* Find the area of a rectangle for given length and breadth */
#include<stdio.h>
void main()
{
	int length, breadth, area;
	printf("Enter length and breadth of the rectangle\n");
	printf("Length:\t");
	scanf("%d", &length);
	printf("Breadth:\t");
	scanf("%d", &breadth);
	area = length * breadth;
	printf("Area of the rectangle of length %d and breadth %d is:\t%d\n", length, breadth, area);
}

Output

Enter length and breadth of the rectangle
Length:	10
Breadth:	20
Area of the rectangle of length 10 and breadth 20 is:	200