Computer Science, asked by ritikgupta7305, 8 months ago

Write Algorithm to read L and B value of a rectangle. calculate area and primeter of rectangle.

Answers

Answered by visheshsaxena49
0

Answer:

public int area(int length, int breadth)

{

return length*breadth;

}

public int perimeter (int length. int breadth)

{

return 2(length+breadth);

}

Explanation:

replace int with whatever datatype u want

Similar questions