Find the Area and Perimeter of Rectangle – Java Program

rectangle is a quadrilateral with four right angles.

Say rectangle is given with side’s length A and B

Area of Rectangle = A * B

Perimeter of rectangle = 2(A+B)

Area and perimeter Of Rectangle

Code:

Output:

Area of Rectangle: 12.0
Perimeter of Rectangle: 14.0

__________________________________________________
Top Companies Interview Questions..-

GoogleMicrosoftAmazonFacebookmore..

If you find anything incorrect or you feel that there is any better approach to solve the above problem, please write comment.
__________________________________________________

You may also like...

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: