<!DOCTYPE html public "-//w3c//dtd html 3.2//en"> <HTML> <HEAD> <TITLE>Powers of Ten</TITLE> <META name="GENERATOR" content="Arachnophilia 4.0"> <META name="FORMATTER" content="Arachnophilia 4.0"> <P> <CENTER><H2>Exercise 9.16</H2></CENTER><P> <script language="JavaScript"> <!-- ; // Output headers document.writeln( "<TABLE align='center' border='0' cellspacing='0' cellpadding='0'>" ); document.writeln( "<TR><TD width=75>N</TD><TD width=75 >10*N</TD>" ); document.writeln( "<TD width=75 >100*N</TD><TD width=75 >1000*N</TD></TR>" ); // Output a row for each n from 1 to 5 for( var n = 1; n<6; n++ ) { document.writeln( "<TR><TD >"+n+"</TD>" ); for( var x = 10; x <= 1000; x = x*10 ) { document.writeln( "<TD >"+n*x+"</TD>" ); } document.writeln( "</TR>" ); } document.writeln( "</TABLE>" ); // end hide --> </script> </HEAD> <BODY> <P>Click Refresh (or Reload) to run the script again<P> <a href="9_16src.html">View Source</a><p> <A href="main.html">back to Labs page</A> </BODY> </HTML>