square - document.write(area)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 <HTML> <HEAD><TITLE>Square Area/Perimeter</TITLE> <SCRIPT LANGUAGE=JavaScript> <!-- var num num=prompt("Enter a length for one side of a square.","") num=parseFloat(num) var area area=num*num document.write("The area of a square with length ") document.write(num) document.write(" is ")
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: document.write(area) document.write("<BR>") var perimeter perimeter=num+num+num+num document.write("The perimeter of a sqaure with length ") document.write(num) document.write(" is ") document.write(perimeter) //--></SCRIPT> </HEAD> </BODY> </HTML>...
View Full Document

This note was uploaded on 04/19/2008 for the course IME 105 taught by Professor Luebbers during the Spring '08 term at Bradley.

Ask a homework question - tutors are online