Estoy iniciando en esto de .NET, hice mi primer ejemplo del libro y no obtengo los resultados que quiero... la verdad no tengo idea de que esté fallando... a continuacion el código:
<! StepByStep1_1.aspx -->
<%Page language='C#' %>
<html><head>
<script runat = "server">
double ToCelsius(double f)
{
return (5.0/9.0)*(f-32.0);
}
</script></head>
<body>
<h2>Farenheit to Celsius Conversion Chart</h2>
<table border = 2>
<tr>
<th>° Farenheit </th><th>° Celsius</th>
</tr>
<%
for (double f=50.0; f<=100.0; f++)
{
Response.Output.write(
"<tr><td>{0}</td><td>" +
"{1:f}</td></tr>", f, toCelsius(f));
}
%>
</table>
</body>
</html>
Se supone que me debe poner una tabla con la conversion de grados Farenheit a Celsius desde 50 hasta 100 grados Farenheit, pero solo me está poniendo los títulos de la tabla.
Si necesitan mas informacion solamente me dicen... gracias!
