C Program to Find Area of Rectangle

Advertisements

Prev Tutorial Next Tutorial

Find Area of Rectangle Program in C

Area of a rectangle is the amount of space occupied by the rectangle. A rectangle can be defined as the plain figure with two adjacent sides equal in length. The 4 angles present in the rectangle are also equal. A rectangle can be divided into 4 similar square. The measurement of each interior angle in a rectangle is 90 degrees.

For calculate area and parameter of rectangle you need length and breath of rectangle and apply below formula;

Formula

Area of Rectangle = length*breath;
Parameter of Rectangle = 2*(length+breath);
c program to find area of rectange

program to find area of rectangle

#include<stdio.h>
#include<conio.h>

void main()
{
int length,breath,area_rec=0,parameter=0;
clrscr();
printf("Enter Length and Breath of Rectangle: ");
scanf("%d%d",&length,&breath);
area_rec=length*breath;
parameter=2*(length+breath);
printf("\nArea of Ractangle: %d",area_rec);
printf("\nParameters of Rectangle: %d",parameter);
getch();
}

Output

Enter Length and Breath of Rectangle: 5 4
Area of Rectangle: 20
Parameters of Ractangle: 18

Prev Tutorial Next Tutorial

Google Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements