Created
January 11, 2017 00:31
-
-
Save samverneck/4ab33a301eb9cdb00fea61a1d8e3f013 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
numero = int(input("Digite um número inteiro: ")) | |
digitoDezena = 0 if (numero < 10) else (numero // 10 % 10) | |
print("O dígito das dezenas é", digitoDezena) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
numero = int(input("Digite um número inteiro: "))
digitoDezena = 0 if (numero < 10) else (numero % 10 // 10)
print("O dígito das dezenas é", digitoDezena)