Created
March 15, 2017 01:15
-
-
Save edinsoncs/c107ed28c781d06d05f4892dbf6a2ea4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="es"> | |
<script> | |
var a = Number(prompt('Ingrese lado A')); | |
var b = Number(prompt('Ingrese lado B')); | |
var c = Number(prompt('Ingrese lado C')); | |
var response = ''; | |
if(a === b && b == c && a == c) { | |
response = '<strong>Es Equilatero</strong>'; | |
} | |
else if(a == b || a == c || b == c) { | |
response = '<strong>Es isosceles</strong>' | |
} | |
else { | |
response = '<strong>Es Escaleno</strong>' | |
} | |
document.write(response); | |
while | |
do while | |
for | |
forEach | |
</script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment