* Write a Program and Algorithm to find the Area of rectangle by using C++ Language.
Algorithm :
- Start
- Read the value of Length ,breathe and Area.
- Enter the value of Length.
- Enter the value of Breathe.
- Calculation, Area=Length*Breathe.
- Print the Area of rectangle "Area".
- Stop.
Program :
#include<iostream.h>
#include<conio.h>
int main()
{
// Technical Adda (https://mrpankajcse.blogspot.com/)
int l,b,ar;
clrscr();
cout<< "Enter the length and breathe of area";
cin>>l>>b;
ar=l*b;
cout<< "Area of rectangle :: "<<ar;
return 0;
}
output
Enter the length and breathe of area = 40 ↲
20 ↲
Area of rectangle :: 800
No comments:
Post a Comment