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
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
Math,
3 months ago
Computer Science,
3 months ago
Science,
3 months ago
English,
6 months ago
Science,
6 months ago
Social Sciences,
11 months ago
Physics,
11 months ago
Art,
11 months ago