Fralgo
A Java application for compiling and executing algorithms in French, based on Pascal
Built With
Prerequisites
- Install fpc (Free Pascal Compiler) :
On MAC OS using Homebrew :
brew install fpc
On Linux (Ubuntu) :
sudo apt-get install fp-compiler
On Windows using Chocolatey :
choco install freepascal
Screenshots
Examples
Algorithme Algo1
Variable a : Entier
Début
Ecrire("Salut !")
a ← 50
Ecrire("A = ",a)
Fin
Algorithme Algo2
Variable i : Entier
Début
Pour i ← 1 Jusqu'à 4 Faire
Ecrire(i, " - Salut !")
FinPour
Fin
Algorithme Algo3
Variable i : Entier
Début
Pour i ← 1 Jusqu'à 10 Faire
Si i % 2 = 0 Alors
Ecrire(i)
FinSi
FinPour
Fin
Algorithme Somme
Variable n1,n2,s : Entier
Début
Ecrire("Veuillez saisir le premier nombre :")
Lire(n1)
Ecrire("Veuillez saisir le deuxième nombre :")
Lire(n2)
s ← n1+n2
Ecrire(n1," + ",n2," = ",s)
Fin
Algorithme NombrePremier
Variable i , j , n : Entier
Début
Pour i ← 2 Jusqu'à 100 Faire
n ← 0
Pour j ← 2 Jusqu'à (i/2) Faire
Si i % j = 0 Alors
n ← n + 1
FinSi
FinPour
Si n = 0 Alors
Ecrire(i)
FinSi
FinPour
Fin
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Contact
- Yassine Lafryhi - @YassineLafryhi - y.lafryhi@gmail.com
- Project Link : https://github.com/Yassine-Lafryhi/Fralgo
If you found this project helpful, or you learned something from the source code and want to thank me, consider buying me a cup of
☕️ : PayPal