Computer Science, asked by km3897719, 2 months ago

Write a program to create a class Rectangle with a main() method to declare the variable l and b to initialize the length and breadth of the rectangle. calculate and print the area and perimeter of the rectangle by using the following formulae: - Area = length*breadth Perimeter = 2(length*breadth)​

Answers

Answered by meenakshibhargava889
0

Explanation:

please mark me brainlist

Attachments:
Answered by jaderuby523
0

Answer:

CLS

(Variable a and b);

Calculate (Area= length*breadth perimeter = 2(length*breadth)

Print

Similar questions