write a Java Program which displays perimeter of a square and rectangle
Answers
Answered by
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
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
Political Science,
5 months ago
Math,
5 months ago
Math,
5 months ago
Math,
9 months ago
CBSE BOARD X,
9 months ago
Social Sciences,
1 year ago
Music,
1 year ago