How do I print output without a trailing newline in Rust?
<p>The macro <code>println!</code> in Rust always leaves a newline character at the end of each output. For example</p>

<pre><code>println!("Enter the number : ");
io::stdin().read_line(&amp;mut num);
</code></pre>

<p>gives the output</p>

<pre class="lang-none prettyprint-override"><code>Enter the number : 
56
</code></pre>

<p>I don't want the user's input <code>56</code> to be on a new line. How do I do this?</p>