Yassine-Lafryhi / Fralgo

A JAVA application for compiling and executing algorithms in French, based on Pascal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Apache License 2.0

Contact

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

About

A JAVA application for compiling and executing algorithms in French, based on Pascal

License:Apache License 2.0


Languages

Language:Java 95.1%Language:CSS 4.9%