Space for google add

To display Area of square.

 


 Write Javascript code to display area of square .

Programme :-

<html>

<body>

<h4><center><font face="Algerian"> <u>

Area of Square.

</h4></center></font></u>

 <script language="javascript">

 S=prompt("Enter Side of Square ", "S" )

document.write("S is side of square.")

document.write("<br/>")

A=(parseInt(S)*parseInt(S))

document.write("<br/>")

document.write("Area = S * S")

document.write("<br/>")

document.write("Area = ",A)

 </script>

</body>

</html>

Post a Comment

0 Comments