Computer Science, asked by latajain150419, 2 months ago

java program of 'to find the area and perimeter of rectangle by using the assignment operator​

Answers

Answered by n3od4rk3r
0

Answer:

Find the area, perimeter of a rectangle by using the assignment operator java programming.

Explanation:

public class Main

{

public static void main(String args[])

{

int 1, b, k, p;

double d;

1=24;b=10;

k=1*b;

p=2*(1+b);

d=Math.sqrt(1*1+b*b);

System.out.println("The area of rectangle="+k);

System.out.println("The perimeter of rectangle="+p);

}

}

Similar questions