first commit
This commit is contained in:
21
examples/mots.spf
Normal file
21
examples/mots.spf
Normal file
@ -0,0 +1,21 @@
|
||||
texte phrase = "Bonjour à tout le monde";
|
||||
texte mot = "";
|
||||
liste mots = [];
|
||||
|
||||
pour chaque texte caractère dans phrase faire {
|
||||
si caractère vaut " " alors {
|
||||
si taille mot > 0 alors {
|
||||
ajouter mot dans mots;
|
||||
mot = "";
|
||||
}
|
||||
} sinon {
|
||||
mot = mot + caractère;
|
||||
}
|
||||
}
|
||||
|
||||
# Potentiel dernier mot
|
||||
si taille mot > 0 alors {
|
||||
ajouter mot dans mots;
|
||||
}
|
||||
|
||||
afficher mots;
|
Reference in New Issue
Block a user