Un langage de programmation moderne entièrement en français. Apprenez à coder dans votre langue maternelle !
Obtenez l'exécutable pour commencer à programmer en français
Votre navigateur peut bloquer les téléchargements car ils contiennent des exécutables. Ceci est normal pour les nouveaux logiciels.
Windows 10/11
32-bit et 64-bit inclus
✅ Version Améliorée
Inclut 32-bit pour compatibilité maximale
Téléchargez et décompressez automatiquement :
Windows (PowerShell):
Invoke-WebRequest -Uri ".../hamroun-windows.zip" -OutFile "hamroun.zip"Linux:
wget .../hamroun-linux.zip && unzip hamroun-linux.zipmacOS:
curl -O .../hamroun-macos.zip && unzip hamroun-macos.ziphttps://votre-site.com/downloads/hamroun-windows.ziphttps://votre-site.com/downloads/hamroun-linux.ziphttps://votre-site.com/downloads/hamroun-macos.ziphamroun-windows.ziphamroun-32bit.exe (plus compatible)hamroun-64bit.exe⚠️ Si Windows bloque l'exécution :
Message : "Cette application ne peut pas s'exécuter"
Solution :
hamroun-32bit.exehamroun-linux.zipunzip hamroun-linux.zipchmod +x hamrounsudo mv hamroun /usr/local/bin/hamroun-macos.zipchmod +x hamrounsudo mv hamroun /usr/local/bin/Chaque archive ZIP contient l'exécutable optimisé pour votre plateforme ainsi que la documentation complète. Les archives incluent automatiquement la bonne architecture (AMD64/ARM64) selon votre système.
# premier.hamroun x = 10 y = 5 somme = x + y SI somme PLUS_GRAND 10 ALORS resultat = 1 SINON resultat = 0 FIN
Enregistrez en tant que premier.hamroun et exécutez avec hamroun.exe premier.hamroun
Pour construire l'exécutable à partir du code source :
go build -o hamroun.exe hamroun.goPour exécuter un fichier .hamroun :
hamroun.exe fichier.hamrounPour lancer le mode interactif :
hamroun.exe.hamroun# Déclaration de variables x = 10 y = 5 # Opérations arithmétiques somme = x + y # Addition difference = x - y # Soustraction produit = x * y # Multiplication quotient = x / y # Division
age = 18 # Structure conditionnelle SI age PLUS_GRAND 17 ALORS resultat = 1 SINON resultat = 0 FIN
EGALégalité (==)DIFFERENTdifférence (!=)PLUS_GRANDplus grand (>)PLUS_PETITplus petit (<)# Calcul de la somme de 1 à 10 total = 0 BOUCLE i DE 1 A 10 total = total + i FIN
# Factorielle de 5 factorielle = 1 BOUCLE j DE 1 A 5 factorielle = factorielle * j FIN
premier.hamroun# Mon premier programme en français ! nom = "Développeur" age = 25 # Calculs simples age_dans_10_ans = age + 10 # Condition SI age PLUS_GRAND 18 ALORS statut = "Majeur" SINON statut = "Mineur" FIN # Affichage du résultat statut
hamroun.exe premier.hamrounMajeur
calculatrice.hamroun# Calculatrice simple a = 15 b = 4 # Toutes les opérations addition = a + b soustraction = a - b multiplication = a * b division = a / b # Calculs avancés carre_a = a * a somme_carres = (a * a) + (b * b) # Tests conditionnels SI a PLUS_GRAND b ALORS plus_grand = a SINON plus_grand = b FIN # Boucle pour table de multiplication BOUCLE i DE 1 A 5 resultat = a * i FIN resultat
jeu_logique.hamroun# Simulation d'un jeu de devinettes
nombre_secret = 42
tentative = 35
essais = 0
# Logique de jeu
BOUCLE i DE 1 A 10
essais = essais + 1
SI tentative EGAL nombre_secret ALORS
statut = "Gagné"
SINON
SI tentative PLUS_PETIT nombre_secret ALORS
indice = "Plus grand"
SINON
indice = "Plus petit"
FIN
# Ajustement automatique pour demo
SI tentative PLUS_PETIT nombre_secret ALORS
tentative = tentative + 3
SINON
tentative = tentative - 2
FIN
FIN
SI statut EGAL "Gagné" ALORS
# Sortie de boucle simulée
i = 10
FIN
FIN
essaisUtilisation de BOUCLE...FIN avec conditions internes
Conditions SI...SINON...FIN imbriquées
Variables qui évoluent : essais, tentative, statut
maths.hamroun# Calculs mathématiques avancés
n = 7
# Factorielle
factorielle = 1
BOUCLE i DE 1 A n
factorielle = factorielle * i
FIN
# Suite de Fibonacci (10 premiers)
fib_a = 0
fib_b = 1
fibonacci = fib_b
BOUCLE j DE 2 A 10
fibonacci = fib_a + fib_b
fib_a = fib_b
fib_b = fibonacci
FIN
# Somme des nombres pairs jusqu'à 20
somme_pairs = 0
BOUCLE k DE 2 A 20
reste = k / 2
produit = reste * 2
SI produit EGAL k ALORS
somme_pairs = somme_pairs + k
FIN
k = k + 1
FIN
fibonacciTéléchargez Hamroun et créez vos premiers programmes en français dès maintenant !
SIifALORSthenSINONelseFINendBOUCLEfor/loopDEfromAtoFINend+addition-soustraction*multiplication/divisionEGAL==DIFFERENT!=PLUS_GRAND>PLUS_PETIT<vraitruefauxfalsenullnull42, -5, 0AIDEAffiche l'aideVARIABLESListe les variablesSORTIRQuitter le REPLx = 10 y = x * 2 y
20total = 0 BOUCLE i DE 1 A 3 total = total + i FIN total
6age = 20 SI age PLUS_GRAND 18 ALORS statut = 1 SINON statut = 0 FIN statut
1Calculs de base avec variables
x = 15 y = 3 somme = x + y produit = x * y division = x / y
Démonstration des boucles (factorielle et somme)
factorielle = 1 BOUCLE i DE 1 A 5 factorielle = factorielle * i FIN
Structures conditionnelles
age = 18 SI age PLUS_GRAND 17 ALORS statut = 1 SINON statut = 0 FIN
Programme complet pour tester les nombres premiers
nombre = 17
estPremier = vrai
BOUCLE i DE 2 A nombre
SI nombre EGAL i * (nombre / i) ALORS
estPremier = faux
FIN
FINIf (condition)
SI x PLUS_GRAND 5Then
SI x EGAL 10 ALORSElse
SINON y = 0End
FINLoop
BOUCLE i DE 1 A 10From
DE 1 A 10To
DE 1 A 10Equal (==)
x EGAL 5Not equal (!=)
x DIFFERENT yGreater than (>)
x PLUS_GRAND 0Less than (<)
x PLUS_PETIT 100Boolean values
actif = vrai142-5vraifauxnullLes fichiers doivent avoir l'extension .hamroun
fichier.txt ❌fichier.hamroun ✅Utilisez des lignes simples, l'indentation n'est pas supportée dans les blocs
Pas encore supportées, utilisez des nombres
"Hello" ❌42 ✅Solutions aux problèmes courants
Windows SmartScreen bloque les exécutables non signés pour votre sécurité.
✅ Solutions :
hamroun-32bit.exe (plus compatible)Les nouveaux exécutables peuvent être marqués comme suspects.
✅ Vérifications :
hamroun.exe nom_fichier.hamroun