write a Java program to enter length and breadth
Answers
Answered by
0
Answer:
I hope it will help you if you like this mark brainlest and thank
Explanation:
The program output is also shown below.
public class Area_Perimeter.
int l, b, perimeter, area;
Scanner s = new Scanner(System.
System. out. print("Enter length of rectangle:");
l = s. nextInt();
System. out. print("Enter breadth of rectangle:");
b = s. nextInt();
perimeter = 2 * (l + b);
Similar questions