first commit

This commit is contained in:
2025-03-15 17:16:09 +01:00
commit 6b4a7c48c8
10 changed files with 154 additions and 0 deletions

14
examples/monotone.spf Normal file
View File

@ -0,0 +1,14 @@
liste nombres = [3, 3, 6, 7, 8];
booléen monotone = vrai;
pour chaque entier position dans [1:taille nombres - 1] faire {
si nombres[position] > nombres[position + 1] alors {
monotone = faux;
}
}
si monotone alors {
afficher "La liste", nombres, "est monotone";
} sinon {
afficher "La liste", nombres, "n'est pas monotone";
}