Celsius Fahrenheit Table Jsp : HTML Output « JSP « Java






Celsius Fahrenheit Table Jsp

<%--
  Copyright (c) 2002 by Phil Hanna
  All rights reserved.
  
  You may study, use, modify, and distribute this
  software for any purpose provided that this
  copyright notice appears in all copies.
  
  This software is provided without warranty
  either expressed or implied.
--%>
<%@ page session="false" %>
<table border="0" align="center" width="50%">
<tr>
   <th align="right">Celsius</th>
   <th align="right">Fahrenheit</th>
</tr>
<%
   for (int c = 0; c <= 100; c += 10) {
      int f = 32 + 9*c/5;
      out.print("<tr>");
      out.print("<td align=\"right\">" + c + "</td>");
      out.print("<td align=\"right\">" + f + "</td>");
      out.print("</tr>");
   }
%>
</table>


           
       








CelsiusFahrenheitTableJsp.zip( 88 k)

Related examples in the same category

1.JSP HTML Table
2.Output Simple HTML Tag Jsp
3.Output HTML
4.Print ASCII Table Jsp
5.Prints a conversion table of miles per gallon to kilometers per liter