diff --git a/Doc/Sd1/statements.xml b/Doc/Sd1/statements.xml index 638ea3f81923b83b8ddaa7a251c17876367b1236..4120e7bb6b4a41462473b483b04db909b7ea6316 100644 --- a/Doc/Sd1/statements.xml +++ b/Doc/Sd1/statements.xml @@ -5526,6 +5526,16 @@ do { System.out.println(candidate); // Print final result </programlisting> + <para>The assignment <code language="java">atLeastOneRemainder + = 0 != candidate % i</code> deserves an explanation. + Additional braces help understanding the expression:</para> + + <programlisting language="java">atLeastOneRemainder = (0 != (candidate % i)) + <emphasis role="red">╲ ╲ ╱</emphasis> + <emphasis role="red">╲</emphasis> int + <emphasis role="red">╲ ╱</emphasis> + boolean</programlisting> + <para>Executing this code results in 232792560 for the smallest desired value.</para> </answer>