Skip to content

Instantly share code, notes, and snippets.

@eliaperantoni
Created October 16, 2016 11:48
Show Gist options
  • Save eliaperantoni/805bf28ab4bf62dbe1ad4c168d42fafe to your computer and use it in GitHub Desktop.
Save eliaperantoni/805bf28ab4bf62dbe1ad4c168d42fafe to your computer and use it in GitHub Desktop.
##- 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