Computer Science, asked by varunkeswani41, 6 months ago

write a program to find the diagonal of a rectangle. Take length and breadth as inputs.

Answers

Answered by priyomrabhadas
4

Answer:

//Code Starts

function Rectangle (length, breadth) {

 this.Area = length*breadth;

 this.Perimeter = 2*length + 2*breadth;

 this.Diagonal = Math.sqrt((length**2)+(breadth**2))

Rectangle is a parallelogram with opposite sides of equal length and with.  Following is the Java program that takes Length, Breadth as inputs .

HOPE IT HELPS YOU PLS MARK AS BRAINLIEST

Similar questions