// Switch status array bool Switch[0..9]; // Reset the counter before scanning RESET = 1; RESET = 0; for (i=0 ; i<10 ; i++) { // If the switch is depressed, Input will read high Switch[i] = INPUT; // Clock the counter CLOCK = 1; CLOCK = 0; }