Created
May 5, 2022 00:49
-
-
Save IvsonEmidio/5f7d96cd92ebe5214ce37d5fc79eb34f to your computer and use it in GitHub Desktop.
Contéudo da aula meet
This file contains 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
function solucao(esquerda, direita){ | |
if (esquerda > direita){ | |
console.log("esquerda ganhando"); | |
} else if (esquerda < direita){ | |
console.log("direita ganhando"); | |
} else if (esquerda + direita === 0){ | |
console.log("nenhum voto"); | |
} else { | |
console.log("empate"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment