Created
October 16, 2016 11:48
-
-
Save eliaperantoni/805bf28ab4bf62dbe1ad4c168d42fafe to your computer and use it in GitHub Desktop.
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
##- IMPORT | |
##- DOC | |
''' | |
Creare un programma che, dato un numero intero positivo,ne | |
restituisce l'ultima cifra | |
''' | |
##- VARIABILI | |
numero = 25729 #Questa variabile simula un input da parte dell'utente | |
ultimaCifra = 0 | |
##- FUNZIONI E PROCEDURE | |
##- ESECUZIONE | |
if __name__ == "__main__": | |
print("inizio programma") | |
ultimaCifra = numero%10 | |
print(ultimaCifra) | |
print("fine programma") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment