Computer Science, asked by shree102, 9 months ago

write a Java Program which displays perimeter of a square and rectangle​

Answers

Answered by queensp73
0

Answer:

Input length and width of rectangle from user. ...

Apply formula to calculate rectangle perimeter i.e. perimeter = 2 * (length + width) .

Apply formula to calculate rectangle area i.e. area = length * width .

Finally, print the value of perimeter and area .

Explanation:

HOPE THIS HELPS U

MARK AS BRAINLIEST :)

Answered by Anonymous
0

Answer:

Answer:

Input length and width of rectangle from user. ...

Apply formula to calculate rectangle perimeter i.e. perimeter = 2 * (length + width) .

Apply formula to calculate rectangle area i.e. area = length * width .

Finally, print the value of perimeter and area .

Explanation:

HOPE this helps you

MARK AS BRAINLIEST :)

Similar questions