<meta charset="UTF-8">
<h1>JUEGO DE ADIVINANZA</h1>
<script>
function saltarlinea(){
document.write("<br>");
document.write("<br>");
document.write("<br>");
document.write("<hr>");
}
function imprimir(frase){
document.write(frase);
saltarlinea();
}
var numeroPensado = Math.round(Math.random()*10);
var numeroLanzado = parseInt(prompt("ingrese un numero entre 0-10"))
if (numeroPensado == numeroLanzado){
imprimir("usted acerto")
}
else {
imprimir("usted erro, el numero pensado era " + numeroPensado)
}
</script>