/ Published in: JavaScript

El ejercicio numero uno resuelto
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> var n1 var n2 var n3 n1=Number(prompt("Escriba un número cualquiera"," ")) n2=Number(prompt("Escriba otro número cualquiera"," ")) n3=Number(prompt("Escriba un último número cualquiera"," ")) if(n1>n2 & n1>n3) { document.write("<h1>El número mayor es: ",n1,"</h1>") } if(n2>n1 & n2>n3) { document.write("<h1>El número mayor es: ",n2,"</h1>") } if(n3>n1 & n3>n2) { document.write("<h1>El número mayor es: ",n3,"</h1>") } </script>
URL: asd
Comments
