Write Algorithm to read L and B value of a rectangle. calculate area and primeter of rectangle.
Answers
Answered by
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
Hindi,
4 months ago
English,
4 months ago
Math,
4 months ago
English,
8 months ago
Social Sciences,
8 months ago