Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Structure du code et coloration

Mike Devresse edited this page Jan 9, 2019 · 3 revisions

Structure

Structure globale

ALGORITHME <nom_algorithme>
DEBUT

FIN

Declaration et affectation d'une variable

ALGORITHME <nom_algorithme>
variable:
    <nom_var> : <type>
DEBUT
    <nom_var> <-- <valeur>
FIN

Declaration d'un tableau et affectation

ALGORITHME <nom_algorithme>
variable:
    <nom_var> : Tableau[<taille>] de <type>
DEBUT
    <nom_var>[<index>] <-- <valeur>
FIN

Coloration

Conditions, structure alternative généralisé, boucles : bleu 
Appel de fonction : rouge 
Texte entre guillemet : cyan 
Type : vert 
Mot clef de structure ( ALGORITHME, DEBUT, FIN, variable ) : violet