Skip to content

Commit 9ac0108

Browse files
committed
Algorithm à bullenormal
1 parent 4d66649 commit 9ac0108

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

tri-a-bulle_normal/Algorithm.algo

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Correspond à la fonction Trouve disponible
2+
FONCTION ENTIER RechercheFilm(Chaine: nomRecherche)
3+
VARIABLE
4+
ENTIER: i <- 0
5+
BOOLEAN: nonTrouve <- VRAI
6+
DEBUT
7+
FAIRE
8+
SI noms[i] = nomRecherche ALORS
9+
nonTrouve = FAUX
10+
SINON
11+
i <- i + 1
12+
FINSI
13+
TANTQUE nonTrouve Et i < NB_FILM
14+
15+
SI nonTrouve ALORS
16+
i <- NULL
17+
FINSI
18+
19+
Retourne i
20+
FIN
21+
FINFONCTION

0 commit comments

Comments
 (0)