Skip to content

Commit

Permalink
correction pseudo code exo 1.3.1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jdesalle authored and MiguelDLC committed Dec 7, 2020
1 parent 799d282 commit 64e36f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/q6/calcu-INGI1123/exercises/calcu_tp1.tex
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ \subsection{} % Exercise 3
i = 0
println(i)
while true
i+=1
println(i)
println(-i)
i += 1
end
end
\end{minted}
Expand Down

0 comments on commit 64e36f6

Please sign in to comment.