c program to enter length and breadth of a rectangle and find its area and perimeter,area of rectangle,program to find area of rectangle,write a c program to enter length and breadth of a rectangle and find its area.,program to find perimeter of rectangle,write a c program to enter length and breadth of a rectangle and find its perimeter,area of a rectangle,program to obtain length & breadth of a rectangle and calculate its area,a program to find area and perimeter of rectangle in c
To find area of rectangle in C language. First of all we know how to find area of rectangle.

Thus, the approach to find the area of rectangle in C are as follows:

Since we know that 

                       Area of Rectangle = Length x Breadth

So, we need to input value of length and breadth and apply the above formula to calculate area of  rectangle in C. So, Let's get started:

Logic to  solve code:

1. First, Input the value of length and breadth using printf() and scanf() function.

2. Apply the above formula to calculate the result of area of rectangle.

3. Finally, Print  the value of the result obtained by the area of rectangle.

Example
INPUT

Enter length value
5
Enter breadth value
2

OUTPUT

Area Of Rectangle = 5x2 =10

Full Code to Find the Area of Rectangle in C Language:

/*  
 * Program to find out the area of rectangle in C Language  
 */  
   
 #include<stdio.h>  
   
 int main()  
 {  
   int length, breadth, AreaOfRectangle;  
   /*  
   * length for storing the value of length of rectangle  
   * breadth for storing the value of breadth of rectangle  
   * AreaOfRectangle for storing the value of the result of area of rectangle  
   */  
   printf("Enter the value of length\n");  
   scanf("%d",&length); // For taking the input of length  
   
   printf("Enter the value of breadth\n");  
   scanf("%d",&breadth); // For taking the input of breadth  
   
   AreaOfRectangle = length * breadth;  
   //Here AreaOfRectangle takes the result of multiplication of length and breadth  
   
   printf("Area Of Rectangle  is %d",AreaOfRectangle);  
   //For printing the result of area of rectangle  
   return 0;  
 }  
   

Output
Enter the value of length
5
Enter the value of breadth
2
Area Of Rectangle having length 5 and breadth 2 is 10








Please write this code on your own and Run this code and put the values of  length and breadth different and see the output of the area of rectangle every time and comment your answer with input and output value.

As, everything is clear in the code, I hope you will be able to write a program how to find the area of rectangle in C language. If you have any query related to the above code or with this post. You are always welcome to post your query in the comment box!