<meta charset="UTF-8">
<h1>PROGRAMA JUEGO DE ADIVINACION </h1>
<script>
    function saltarLinea() {
        document.write("<br>");    
        document.write("<br>");    
        document.write("<br>");    
    }  
    function imprimir(frase) {
        document.write(frase);
        saltarLinea();
    }
function soltear (n){
  return  Math.round(Math.random()*10);
}
       var numeroPensado = soltear ()
    var numeroLanzado = parseInt(prompt("Ingrese un número entre 0-10"))
    if (numeroPensado == numeroLanzado){
        imprimir("usted acertó")
    }
    else {
        imprimir("usted erró, el número pensado era " + numeroPensado)    
    }
</script>