C Program to find Area of a Rectangle using length and width

Write a C Program to find Area of a Rectangle using length and width with example.

C Program to find Area of a Rectangle using length and width

This program allows the user to enter the length and width of a rectangle. Using those values, C Programming will calculate the area of a rectangle.

TIP: If we know the length and width of a rectangle, then we can calculate the area of a rectangle using formula : Area = Length * Width

/* C Program to find Area of a Rectangle using length and width */
 
#include<stdio.h>
int main()
{
  	float width, length, Area; 
 
  	printf ("\n Please Enter the Width of a Rectangle  :  ");
  	scanf ("%f",&width);

  	printf ("\n Please Enter the Length of a Rectangle :  ");
  	scanf ("%f",&length);
	   
  	Area = length * width;
 
	printf("\n The Area of a Rectangle =  %.2f", Area);
 
  	return 0;
}
C Program to find Area of a Rectangle using length and width

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.