title: Conditional statements inside `printf`
body: <p>Is there any method to use a conditional statement inside other statements, for example <code>printf</code>?</p>
  
  <p>One way is using ternary operator <code>? :</code> eg:</p>
  
  <pre><code>printf("%d", a &lt; b ? a : b);
  </code></pre>
  
  <p>Is there a method for more complicated conditions?</p>