diff --git a/Doc/Sd1/statements.xml b/Doc/Sd1/statements.xml index 4120e7bb6b4a41462473b483b04db909b7ea6316..dd00c55806c94a906cb5407cc24e2db57bcd2b6e 100644 --- a/Doc/Sd1/statements.xml +++ b/Doc/Sd1/statements.xml @@ -5536,6 +5536,15 @@ System.out.println(candidate); // Print final result </ <emphasis role="red">╲ ╱</emphasis> boolean</programlisting> + <para>This is fully equivalent to the more explicit + code:</para> + + <programlisting language="java">if (0 == (candidate % i)) { + atLeastOneRemainder = false; +} else { + atLeastOneRemainder = false; +}</programlisting> + <para>Executing this code results in 232792560 for the smallest desired value.</para> </answer>