Computer Science, asked by amanguptaa325, 3 months ago

Develop a program in Java using BlueJ to accept the length and breadth using parameters of a rectangle and find its Area and Perimeter.​

Answers

Answered by Pakiki
1

This is a Java Program to Create a Simple Class to Find out the Area and Perimeter of Rectangle.

Formula:

Perimeter of rectangle = 2 * (length + breadth)

Area of rectangle = length * breadth

Enter the length and breadth of the rectangle as input. Now we use the given formula to calculate the area and perimeter of rectangle.

Here is the source code of the Java Program to Create a Simple Class to Find out the Area and Perimeter of Rectangle. The Java program is successfully compiled and run on a Windows system. The program output is also shown below.

Similar questions