Decade counter: A decade counter is a counter circuit that counts from 0 to 9 (from 0000 to 1001 in binary numbers) and then resets. Using a 4-bit ripple counter block, 2 inverters and a 4-input AND gate, construct the circuit diagram of a decade counter.
(Hint: the ripple counter has a clear terminal which resets the output to 0000.)