Computer Science, asked by wwwsimranpunjabi22, 4 months ago

Question 6.
[15]
Write a program to input the length and breadth of a rectangle and find the perimeter
of that square whose area is same as the area of the rectangle.​

Answers

Answered by nisha263248
0

Answer:

import java.util.*;

class math

{

public static void main()

{

Scanner sc=newScanner(System.in);

int l,b,peri;

System.out.println("enter the length and breath");

l=sc.nextInt();

b=sc.nextInt();

peri=2(l+b);

System.out.println("Perimeter of the of the square is"+ peri);

}

}

Similar questions