27.01.2015 Views

Chapitre 6 Programmation et langages - Apprendre en ligne.net

Chapitre 6 Programmation et langages - Apprendre en ligne.net

Chapitre 6 Programmation et langages - Apprendre en ligne.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Programmation</strong> <strong>et</strong> <strong>langages</strong><br />

heure 0 minute, 1 heure 1 minute, ... On voit qu'une première boucle parcourra les heures, tandis que<br />

la deuxième parcourra les minutes, <strong>et</strong> que l'on incrém<strong>en</strong>tera l'heure seulem<strong>en</strong>t quand 60 minutes<br />

seront passées. Voilà ce que cela donnera <strong>en</strong> Python 3 :<br />

h=0<br />

while h

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!