exercises/ex01/cards.c
void changeCount(int val){
  static int count;
  if ((val > 2) && (val < 7)){
    count++;
  } else if (val == 10){
    count--;
  }
  printf("Current count: %i\n", count);
}
/* Adjusts card count and prints updated total.

  val: value classifying low or high value card.
  count: total, accumulated count of the game.
*/
Adjusts card count and prints updated total.
val: value classifying low or high value card.
count: total, accumulated count of the game.
Adjusts card count and prints updated total . val : value classifying low or high value card . count : total accumulated count of the game .
void changeCount(int val){
  static int count;
  if ((val > 2) && (val < 7)){
    count++;
  } else if (val == 10){
    count--;
  }
  printf("Current count: %i\n", count);
}
void changeCount ( int val ) { static int count ; if ( ( val > 2 ) && ( val < 7 ) ) { count ++ ; } else if ( val == 10 ) { count -- ; } printf ( " \n " , count ) ; }
Adjusts card count and prints updated total.
Adjusts card count and prints updated total .