write a program in Java to find the area and perimeter of a rectangle where the length is 20 cm and breadth is 15cm [area = length × breath; perimeter =2 (length +breadth )]
Attachments:
Answers
Answered by
4
Answer:
- Declare a class with name A.
- Declare the main method public static void main(String args[]){
- Now Type the System. out. println("Hello World"); which displays the text Hello World.
Attachments:
Similar questions