Write a program in java to find the perimeter of a rectangle with 14.5 cm and breadth 17.8 cm.
Please help me with this question✍
Answers
Answered by
2
Answer:
import java. util.*;
classperimeter
{
public static void main(String args[])
{
Scanner sc=new Scanner(system.in);
System.out.println("Enter length and breadth of rectangle");
int len=sc.nextInt();
int brd=sc.nextInt();
int peri=2*(len+brd);
System.out.println(peri+"is perimeter of rectangle");
}
}
Explanation:
on terminal window screen put the value of length and breadth i.e.
length=14.5
breadth=17.8
mahibisht0104:
Hey.... Thanks for your help
Similar questions
Math,
5 months ago
Math,
10 months ago
Science,
10 months ago
Math,
11 months ago
Computer Science,
11 months ago