image
Table 2: Truth table of T flip-flop