Skip to content

Instantly share code, notes, and snippets.

View ChristopheDucamp's full-sized avatar

Christophe Ducamp ChristopheDucamp

View GitHub Profile
@ChristopheDucamp
ChristopheDucamp / Ajout-valeurs-boucle-while.py
Created September 6, 2018 09:12
Écrire une boucle while qui ajoute les valeurs de de 1 à `fin`. (`fin` inclus). Par exemple si `fin` égale 6, votre code devrait produire le résultat suivant : 21 (à savoir 1 + 2 + 3 + 4 + 5 + 6).
#une boucle while qui ajoute les valeurs de de 1 à `fin`. (`fin` inclus). Par exemple si `fin` égale 6, votre code devrait produire 21 (1+2 ...+6).
fin = 6
rep = 0
while fin > 0:
rep += fin
fin -= 1
print(rep)
### Keybase proof
I hereby claim:
* I am christopheducamp on github.
* I am christopheducamp (https://keybase.io/christopheducamp) on keybase.
* I have a public key ASAZiWnnlooVZDi5j5PDDyaZdd9tLK6pvR1Mam4kwyvC4Ao
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am ChristopheDucamp on github.
  • I am christopheducamp (https://keybase.io/christopheducamp) on keybase.
  • I have a public key whose fingerprint is B914 BE42 7074 8A2E 25DB 1CA2 3580 5CA3 B261 E045

To claim this, I am signing this object:

@ChristopheDucamp
ChristopheDucamp / gist:6836612
Created October 5, 2013 04:14
Bonjour le monde !
#include <iostream>
using namespace std;
int main()
{
cout<< "Hello world!" << endl;
return 0;
}