Name: Area of a Rectangle in JavaScript '
Description:A program in JavaScript that will ask input value from If you have some questions please send me an email : spy91919@gmail.com' By: Vivek Kumar
____________________________________
<html>
<head>
<title>Area of Rectangle</title>
</head>
<style>
h3 { font-family:arial; };
</style>
<body>
<script>
var length = parseInt(prompt("Enter length of Rectangle : ")
var width = parseInt(prompt("Enter width of Rectangle : "));
var solving_area = (length * width);
document.write("<br>");
document.write("<h3> Area of Rectangle</h3>");
document.write("<font face='arial' size='3'>")
document.write(" The Length of Rectangle is " + length + ".
</font>
<br>
document.write("<font face='arial' size='3'>")
document.write(" The Width of Rectangle is " + width + ".
</font>
<br>
document.write("<font face='arial' size='3'>")
document.write(" The Area of Rectangle is " + solving_area + ".</fon
document.write("<h3> End of Program </h3>");
</script>
</body>
</html>
____________________________________
No comments:
Post a Comment