<!DOCTYPE html>
<html>
<head>
    <title>Numeros pares del 1 al 100</title>
    <meta charset="UTF-8">
</head>
<body>
<h1>PROGRAMA PARA CALCULAR NÚMEROS PARES DEL 1 AL 100 </h1>
<script>
    function saltarLinea() {
        document.write("<br>");    
        document.write("<br>");    
        document.write("<br>");    
    }  
    function imprimir(frase) {
        document.write(frase);
        saltarLinea();
    }
    var contador = 1;
        while (contador <=50) {
            imprimir(contador*2);
            contador++;
    }
  imprimir("Fin");
</script>
</body>
</html>