Computer Science, asked by himangshulxd, 6 months ago

write a javescript program to accept length and breath of rectangle and printa its area and perimeter

Answers

Answered by sjaitely
1

perimeter ();

function perimeter (){

var length = prompt("Enter The Length");

var breadth = prompt("Enter The Breadth");

var perimeter = 2 * ( length + breadth);

alert(perimeter);

}

Similar questions