title: Program that displays all multiples of 7 between 1 and 100 C++
body: <p>How to write this program with <code>switch</code> condition statement instead of <code>if</code>?</p>
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  int main() {
    int i;
    for (i = 1; i &lt;= 100; i++) {
      if ((i % 7 == 0) &amp;&amp; (i &gt; 0)) {
        cout &lt;&lt; i &lt;&lt; endl;
      }
    }
  
    return 0;
  }
  </code></pre>