18. Write a program to display area and perimeter of rectangle.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Algorithm:

Step 1: Start

Step 2: Input Length and Breadth of the Rectangle (L, B)

Step 3: A = L * B

Step 4: P = 2 * ( L + B )

Step 5: Print “ Area of Rectangle “ A

Step 6: Print “ Perimeter of Rectangle “ P

Step 6: Stop/End

Flowchart:

Create a flowchart to display the area and perimeter of the rectangle.
Create a flowchart to display the area and perimeter of the rectangle.
Total
0
Shares
Leave a Reply

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

Previous Post

17. Write a program to display total surface area of cuboid / box.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Next Post

19. Write a program to display total surface area of sphere.(Java, Python, JavaScript, QBasic, C, Go, c++, C#, R)

Related Posts