Write JavaScript code to display Area of rectangle.
Programme :-
<html>
<body>
<h4><center><font face="Algerian"> <u>
Area of Rectangle.
</h4></center></font></u>
<script language="javascript">
L=prompt("Enter Length of Rectangle ", "L" )
document.write("Length is ", L )
document.write("<br/>")
W=prompt("Enter Width of Rectangle","W")
document.write("Width is ", W)
document.write("<br/>")
A=(parseInt(L)*parseInt(W))
document.write("<br/>")
document.write("Area is " , A)
document.write("<br/>")
</script>
</body>
</html>
0 Comments
If anyone has Doubts or suggestions please let me know