From 491079cfa0da45157486b1311b5bb68c7820b1b1 Mon Sep 17 00:00:00 2001 From: Juan Date: Thu, 9 Dec 2021 15:44:54 +0100 Subject: [PATCH] normalizing spacing and idents --- b1-algo/javascript-1.html | 9 ++------ b1-algo/javascript-2.html | 52 +++++++++++++++++++++++------------------------ b1-algo/javascript-3.html | 42 +++++++++++++++++--------------------- b1-algo/javascript-4.html | 51 ++++++++++++++++++++++------------------------ 4 files changed, 71 insertions(+), 83 deletions(-) diff --git a/b1-algo/javascript-1.html b/b1-algo/javascript-1.html index d9e0dee..4149e2d 100644 --- a/b1-algo/javascript-1.html +++ b/b1-algo/javascript-1.html @@ -1,6 +1,4 @@ -
-
- - + \ No newline at end of file diff --git a/b1-algo/javascript-2.html b/b1-algo/javascript-2.html index a5fe70e..e6205a0 100644 --- a/b1-algo/javascript-2.html +++ b/b1-algo/javascript-2.html @@ -1,29 +1,29 @@
diff --git a/b1-algo/javascript-3.html b/b1-algo/javascript-3.html index e3ad145..6ab0e37 100644 --- a/b1-algo/javascript-3.html +++ b/b1-algo/javascript-3.html @@ -1,14 +1,13 @@ -
-
-
+ console.log(resultat); + diff --git a/b1-algo/javascript-4.html b/b1-algo/javascript-4.html index 17de5b7..95c88d5 100644 --- a/b1-algo/javascript-4.html +++ b/b1-algo/javascript-4.html @@ -1,30 +1,27 @@ -
-    
- - + reste = reste - 5; + fin tant que + afficher resultat ~ " reste " ~ reste; + */ + var opD, opG, resultat, reste; + opD = 5; + opG = 31; + resultat=0; + reste = opG; + while(reste > opD) { + resultat ++; + reste = reste - opD; + } + document.write(resultat + " reste " + reste); + \ No newline at end of file