<html> <head> <title>Programa Java</title> </head> <script language="javascript"> var a=0,b=1; function serie() { f=forma3.fin.value*1; document.write("Serie de Fibonancci"+"<br><br>"); document.write( a +" "+ b); c=a+b; while (c<=f) { document.write (" "+c); a=b; b=c; c=a+b; } } </script> <body> <img src="../imagenes/logo.jpg" width="51" height="46" border="0" align ="rigth" >Ejercicio Utilizando While<br> <div align="center"> <h3> <marquee scrollamount="6" width="500" alternate="behabior">Generar La serie de Fibonanci</marquee></h3></div> <hr size="3" color="red" width="1200"> <form name="forma3" id="forma3" method="post"> Ultimo Valor:<input type="text" name="fin" maxlength="7"><br> </form> <a href="javascript:serie();">Calcular</a><br> <a href="fibona.pdf"> Código </a> <br> </body>