Computer Science, asked by shree102, 8 months ago

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

Answers

Answered by queensp73
1

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
1

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 it helps you . best

MARK AS BRAINLIEST :)

Similar questions