Ad Code

WRITE A PROGRAM TO CALCULATE THE AREA OF RECTANGLE.

 Write a program to calculate the area of rectangle.



#include<stdio.h>
#include<conio.h>
void main()
{
int l,b,area;
clrscr();
printf(“Enter the length of rectangle:”);
scanf(“%d”,&l);
printf(“\nEnter the breadth of rectangle:”);
scanf(“%d”,&b);
area= l*b;
printf(“%d”,area);
getch();
}



Output:-



Post a Comment

0 Comments

Ad Code