C program to find an area of rectangle.

 

01  #include<stdio.h>
02
03 int main()
04 {
05 int length, breadth, area;
06
07 printf("nEnter the Length of Rectangle : ");
08 scanf("%d", &length);
09
10 printf("nEnter the Breadth of Rectangle : ");
11 scanf("%d", &breadth);
12
13 area = length * breadth;
14 printf("nArea of Rectangle : %d", area);
15 return 0;
16 }
 
 Output :
Enter the Length of Rectangle : 6
Enter the Breadth of Rectangle : 4
Area of Rectangle : 24

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.