write a program to find area of rectangle
Answers
Answered by
5
#include<iostream.h>
#include<conio.h>
void main()
{ int l,b;
cout<<"Enter length and breadth of the rectangle:";
cin>>l>>b;
cout<<"Area of rectangle is:"<<l*b;
getch();
}
vijay4574:
yar help kardo sabhi question me
Answered by
3
Sample Program for Area of rectangle:
#include<iostream>
int main()
{
float Length,Breadth;
double Area;
cout << "Enter the length and breadth:" ;
cin >> Length >> Breadth;
Area = Length * Breadth;
cout << " Area of the rectangle : " << Area ;
return 0;
}
Output:
Enter the length and breadth : 10 20
Area of the rectangle : 200.
Hope it helps!
Attachments:
Similar questions