title: Change from if else to ternary operator
body: <p>Here is the normal code :</p>
  
  <pre><code>       if(a==b)
              printf("equal");
          else if(a&gt;b)
              printf("bigger");
          else
              printf("smaller");
  </code></pre>
  
  <p>My teacher want to change if/else to this structure:</p>
  
  <pre><code>printf("%s",a&gt;b?"bigger":"smaller")
  </code></pre>
  
  <p>of course, this just a simple and standard. and I don't know how to apply this to above code to replace if/else.</p>