Skip to content
Snippets Groups Projects
Verified Commit 640c14a1 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

updated year

parent d2b9b360
Branches
No related tags found
No related merge requests found
Pipeline #19450 passed
......@@ -69,6 +69,6 @@ deploy: all index.html
cp index.html algo_cours
clean:
rm -f *.html *.pdf *.markdown yq_linux_amd64* index.md .puppeteer.json
rm -rf *.html *.pdf *.markdown yq_linux_amd64* index.md .puppeteer.json algo_cours *.err
.PHONY: clean index.md puppeteer yq
......@@ -57,7 +57,7 @@ Nombre premier: nombre possédant deux diviseurs entiers distincts.
## Algorithme naïf (problème)
```C
est_premier(nombre)
booléen est_premier(nombre)
si
pour tout i, t.q. 1 < i < nombre
i ne divise pas nombre
......@@ -79,11 +79,11 @@ est_premier(nombre)
```C
booléen est_premier(nombre) // fonction
soit i := 2; // variable, type, assignation
soit i = 2; // variable, type, assignation
tant que i < nombre // boucle
si nombre modulo i == 0 // expression typée
retourne faux // expression typée
i := i + 1
i = i + 1
retourne vrai // expression typée
```
......
---
subtitle: "Algorithmique et structures de données, 2021-2022"
subtitle: "Algorithmique et structures de données, 2022-2023"
author: "Paul Albuquerque (B410), Pierre Künzli et Orestis Malaspinas (A401), ISC, HEPIA"
institute: En partie inspirés des supports de cours de P. Albuquerque
lang: fr-CH
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment