|    
			
				26/08/2010, 09:03
			
			
			  | 
  |   |  |  |  |  Fecha de Ingreso: febrero-2007 Ubicación: Guatemala 
						Mensajes: 96
					 Antigüedad: 18 años, 8 meses Puntos: 1 |  | 
  |  Respuesta: como hacer este calculador  
  probe el codigo y quedo de esta manera lo malo es que no me suma los resultados lo mas seguro es que lo tengo malo el codigo queda asi
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>Untitled Document</title>
 <script>
 function Calcular() {
 var a = document.getElementById('a').value; a = Number(a);
 var b = document.getElementById('b').value; b = Number(b);
 var c = Math.sqrt((a*a) + (b*b));
 docment.getElementById('c').value = c;
 }
 </script>
 </head>
 
 <body>
 <table width="98%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td><form id="form1" name="form1" method="post" action="">
 Comprobar teorema de Pitágoras
 <input type="text" id='a' value="3">
 <input type="text" id='b' value="4">
 <input type="text" id='c' value="">
 <button onclick="Calcular()">Calcular</button>
 </form>
 </td>
 </tr>
 </table>
 </body>
 </html>
     |