Computer Science, asked by mahibisht0104, 10 months ago

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 listener110
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
listener110: welcome
Similar questions