<meta charset="UTF-8">
<h1> JUEGO ADIVINANZA </h1>
<script>
function saltarlinea() {
document.write("<br>");
document.write("<br>");
document.write("<hr>");
}
function imprimir(texto) {
document.write(texto);
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 no acerto, el numero pensado era " + numeroPensado)
}
</script>