* Write a Program and Algorithm to find the Area of rectangle by using C++ Language.

Algorithm :

  1. Start
  2. Read the value of Length ,breathe and Area.
  3. Enter the value of Length.
  4. Enter  the value of Breathe.
  5. Calculation, Area=Length*Breathe.
  6. Print the Area of rectangle "Area".
  7. 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




Thanks for visit this page and Support me.

No comments:

Post a Comment

Pages