Computer Science, asked by sakshisudeep4, 7 months ago

Write a program that takes the input the length and breath if a rectangle and conoutes its area and perimeter​

Answers

Answered by wwwalison8888a
1

class Jungshook

{

private int l=0, b=0,p=0,a=0;

public void accept (int l, int b)

{ a=l*b;

p= 2*(l+b);

System.out.println("Area of rectangle is"+ a);

System.out.println("Perimeter of rectangle is"+ p);

}}

gn purple you

Similar questions