Computer Science, asked by atharvrastogi20, 7 months ago

write a Java program to enter length and breadth

Answers

Answered by ITZIRONMAN104
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