Skip to content

Instantly share code, notes, and snippets.

@Ifmr24
Created September 18, 2018 01:13
Show Gist options
  • Select an option

  • Save Ifmr24/e37ecced60cc2a809c594b18be62eee7 to your computer and use it in GitHub Desktop.

Select an option

Save Ifmr24/e37ecced60cc2a809c594b18be62eee7 to your computer and use it in GitHub Desktop.
JS Ejercicio 3
/*
Hacer un programa que muestre todos los numeros entre dos numeros introducidos por el usuario
*/
var num1 = parseInt( prompt('Ingresa un Numero') );
var num2 = parseInt( prompt('Ingresa Otro numero') );
document.write("<h1>Numeros entre "+num1+" y "+num2+"</h1><br>")
for(var i=num1; i <= num2; i++){
document.write(i+"<br>");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment