Write a C Program to calculate AREA of rectangle

By | 02.11.2016

Calculate AREA of rectangle 


Write a C Program to calculate AREA of rectangle. Here’s simple Program to calculate AREA of rectangle in C Programming Language.


Below is the source code for C Program to calculate AREA of a rectangle which is successfully compiled and run on Windows System to produce desired output as shown below :


SOURCE CODE : :


/*  C Program to calculate AREA of a rectangle  */

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

int main()
{
  int l,b;
  int area;
  printf("Enter the length of the rectangle :: ");
  scanf("%d",&l);
  printf("\nEnter the breadth of the rectangle :: ");
  scanf("%d",&b);
  area=l*b;
  printf("\nThe area of a rectangle is %d \n",area);
return 0;
}

OUTPUT : :


Enter the length of the rectangle :: 5

Enter the breadth of the rectangle :: 6

The area of a rectangle is 30

Above is the source code for C Program to calculate AREA of rectangle which is successfully compiled and run on Windows System.The Output of the program is shown above .

If you found any error or any queries related to the above program or any questions or reviews , you wanna to ask from us ,you may Contact Us through our contact Page or you can also comment below in the comment section.We will try our best to reach up to you in short interval.


Thanks for reading the post….

4.5 2 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments