stars.cpp

/* This program writes a field of stars like the one on the USA flag. */

#include <iostream>

using namespace std ;

void MakeSix()
// make a six-star row for the american flag
{
  cout << "*   *   *   *   *   *" << endl;  
}

void MakeFive()
// make a five-star row for the american flag
{
  cout << "  *   *   *   *   *" << endl;  
}

int main()
{
  int sectionNum ;
  for (sectionNum=1; sectionNum <= 4; sectionNum++)
  {
    MakeSix();
    MakeFive();
  }
  MakeSix() ;
  return 0;
}