title: Cout String and int in ternary operator
body: <p>A line in my <code>c++</code> code reads:</p>
  
  <pre><code>cout&lt;&lt;(i%3==0 ? "Hello\n" : i) ;//where `i` is an integer.
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>operands to ?: have different types 'const char*' and 'int
  </code></pre>
  
  <p>How can I modify the code (with minimum characters)?</p>