<div dir="ltr">This email is for you in <b>Lab Section 003</b>.<div><br></div><div>For the question of minisort with functions (Lab 6), "<span style="color:rgb(38,38,38);font-family:"Open Sans",Arial,sans-serif;font-size:14px;white-space:pre-wrap">can we put the code for swapping in the definition of the swap function, instead of main function"</span>, I may misunderstand it. <b>If you mean the codes as follows, the answer is no</b>. You need to revoke swap in the main function.</div><div><br></div><div><pre style="color:rgb(0,0,0)">input three numbers
if first number is greater than second
invoke the swap function to swap first and second numbers
if first is greater than third
invoke the swap function to swap first and third numbers
if second is greater than third
invoke the swap function to swap second and third numbers
output three sorted numbers</pre><pre style="color:rgb(0,0,0)"><br></pre><pre style="color:rgb(0,0,0)">Best Regards,</pre><pre style="color:rgb(0,0,0)">Weilong</pre></div></div>