From b4ae5ef37c16da05e3b14a48c079fd6e7fc9bcf5 Mon Sep 17 00:00:00 2001
From: Jonathan de Salle <jonathan.desalle@student.uclouvain.be>
Date: Mon, 25 May 2020 13:42:05 +0200
Subject: [PATCH] correction pseudo code exo 1.3.1

if we use the previous pseudo code, instead of printing Z (0,1,-1,2,-2,...), we print 3 different 0 values at the beginning (0,0,-0,1,-1,2,-2,...).
Since we already print 0 before thhe loop and we don't want to print -0, the increment of i has to be in the beginning of the loop
---
 src/q6/calcu-INGI1123/exercises/calcu_tp1.tex | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/q6/calcu-INGI1123/exercises/calcu_tp1.tex b/src/q6/calcu-INGI1123/exercises/calcu_tp1.tex
index 1f5add1af..e4be84888 100644
--- a/src/q6/calcu-INGI1123/exercises/calcu_tp1.tex
+++ b/src/q6/calcu-INGI1123/exercises/calcu_tp1.tex
@@ -151,9 +151,9 @@ function print_Z()
 	i = 0
 	println(i)
 	while true
+		i+=1
 		println(i)
 		println(-i)
-		i += 1
 	end
 end
 \end{minted}
-- 
GitLab