From f53cbb4054da8a087831e8f4df0d40da8934c229 Mon Sep 17 00:00:00 2001 From: Juan Date: Thu, 9 Dec 2021 10:57:05 +0100 Subject: [PATCH] =?UTF-8?q?d=C3=A9but=20du=20cours=201=20d'algo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- b1-algo/c1-ALGORITHMIQUE.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/b1-algo/c1-ALGORITHMIQUE.md b/b1-algo/c1-ALGORITHMIQUE.md index 047b0b7..62cf3d2 100644 --- a/b1-algo/c1-ALGORITHMIQUE.md +++ b/b1-algo/c1-ALGORITHMIQUE.md @@ -12,6 +12,12 @@ *Note* : zéro s'écrit avec un O barré : `0` + Valeurs possibles : + - boolean / booléen / bool : vrai / faux + - entier / integer / int : 1 ... 3 .... 2345 .... valeur max pour l'ordinateur + - décimal / float : 0,3 ... 1,2 ... 56,2345 .... valeur max pour l'ordinateur + - alphanumérique / chaine / string : "bonjour", "a123", ... Par convention on mets des guillements autour. + ## opérateur Un opérateur est un symbole qui utilise ou des opérandes et vaut quelque chose. @@ -51,6 +57,18 @@ ## autres instructions : +Par convention onterminera une instruction par ; + ### afficher -affiche le résultat (sur un écran par exemple) \ No newline at end of file +affiche le résultat (sur un écran par exemple) + +> afficher "bonjour"; + +### lire + +lire la saisie d'un utilisateur + +> var reponse chaine; +> lire reponse; +> afficher reponse; \ No newline at end of file