C++ for statement create fixed-count loops

Description

C++ for statement create fixed-count loops

#include <iostream>
using namespace std;
int main()/*from w w  w  .  j  a  v a  2 s. co m*/
{
   int count;
   for (count = 2; count <= 20; count = count + 2)
      cout << count << "  ";
   return 0;
}



PreviousNext

Related