C Program to find the Area of Rectangle

This web page has a C program to find the Area of Rectangle. The program will find the Area of Rectangle by using the formulae : area = length * width. That is, Area of Rectangle is calculated by multiplying length and width. For example: if the width of Rectangle is 3 and the Length of Rectangle is 4, then the Area of Rectangle will be 12. The below given C program will find the Area of Rectangle. Kindly check out the program to find the Area of Rectangle.

Area of Rectangle Program

#include<stdio.h>

int main(){

int width, length, area;

printf("Give the width of Rectangle : ");

scanf("%d", &width);

printf("

Give the Length of Rectangle : ");

scanf("%d", &length);

area = length * width;

printf("



The Area of Rectangle is : %d", area);

return (0);

}

Sample Output:

Give the width of Rectangle : 3

Give the Length of Rectangle : 4



The Area of Rectangle is : 12