Skip to content

Instantly share code, notes, and snippets.

@edinsoncs
Created March 15, 2017 01:15
Show Gist options
  • Save edinsoncs/c107ed28c781d06d05f4892dbf6a2ea4 to your computer and use it in GitHub Desktop.
Save edinsoncs/c107ed28c781d06d05f4892dbf6a2ea4 to your computer and use it in GitHub Desktop.
<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