starsMethod method

void starsMethod (num number)

Implementation

void starsMethod(num number) {
  int i = 0;
  for (; i < 5 && i < number; i++) {
    active[i] = true;
  }

  for (; i < 5; i++) {
    active[i] = false;
  }
}