title: loop in c++ that keeps track when the count is divisible by 4
body: <p>Hello I am having trouble with a c++ program. Basically its a loop that iterates the amount of times the user wants it to. Now when it reaches a number divisible by 4 it keeps track of that number and finally then outputs how many times the number entered was divisible by 4.</p>
  
  <pre><code>#include&lt;iostream&gt;
  using namespace std;
  
  int num;
  int count;
  int test = 0;
  
  int main()
  {
      cin&gt;&gt; num;
      for (int count = 0; count &lt; num; count++)
          if (count % 4 == 0)
              (test++);
          else
              cout&lt;&lt;"";  
  
      return 0;
  }
  </code></pre>