Fig 20-4: Table of Celsius-
Fahrenheit Equivalents
<body bgcolor="white" text="black"><font face='Helvetica'><center>
<h2> Fig 20-4: Table of Celsius-<br>Fahrenheit Equivalents</h2>
<table border=1><th> C </th><th> F </th>
<script language = 'JavaScript'>
function convertC2F ( tempInC ) {
return (9 / 5) * tempInC + 32;
}
document.write('<tr align=center bgcolor="#00ccff"><td>-10</td><td>'
+ convertC2F(-10) + '</td></tr>');
document.write('<tr align=center bgcolor="#0088ff"><td> 0 </td><td>'
+ convertC2F(0) + '</td></tr>');
document.write('<tr align=center bgcolor="#8800cc"><td> 10</td><td>'
+ convertC2F(10) + '</td></tr>');
document.write('<tr align=center bgcolor="#cc0088"><td> 20</td><td>'
+ convertC2F(20) + '</td></tr>');
document.write('<tr align=center bgcolor="#ff0033"><td> 30</td><td>'
+ convertC2F(30) + '</td></tr>');
document.write('<tr align=center bgcolor="#cc0033"><td> 40</td><td>'
+ convertC2F(40) + '</td></tr>');
</script>
</table>
</center>
</body>