Skip to content
Snippets Groups Projects
Select Git revision
  • 9289a0f8e45ce3ace63c1b750608cd15a6a1b790
  • master default protected
2 results

lire_entier.py

Blame
  • Forked from Vuillemot Romain / INF-TC1
    Source project has a limited visibility.
    lire_entier.py 225 B
    # Exercice  : pair/impair
    # Lire un entier au clavier et décider (et afficher) s'il est pair ou impair.
    a=int(input('Donner un entier  positif : '))
    if (a%2 ==1):
        print(a, " est impair")
    else :
        print(a, " est pair")