0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<p>Let’s add the printing mode for all pages of the document.</p>
1
<p>Let’s add the printing mode for all pages of the document.</p>
2
<ol><li>At the end of the program, add a check that compares mode with the value of 'document'.</li>
2
<ol><li>At the end of the program, add a check that compares mode with the value of 'document'.</li>
3
<li>Inside this check, add a loop that increases the value of page valuable from 1 to totalPages inclusively.</li>
3
<li>Inside this check, add a loop that increases the value of page valuable from 1 to totalPages inclusively.</li>
4
<li>Inside the loop, add the print command for the current page page.</li>
4
<li>Inside the loop, add the print command for the current page page.</li>
5
<li>Change the value of the mode variable to 'document'.</li>
5
<li>Change the value of the mode variable to 'document'.</li>
6
</ol>
6
</ol>