Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就像标题一样,有人知道如何绘制电路图来检查 4 位奇数或偶数吗?
您实际上并不需要电路 - 输入的第 0 位确定数字是奇数还是偶数,因此您可以忽略第 1 - 3 位,只需将第 0 位用作奇数/偶数输出(对于奇数,偶数为 0)。所以电路,就像它一样,看起来像这样:
INPUT OUTPUT bit 3 o------------- N/C bit 2 o------------- N/C bit 1 o------------- N/C bit 0 o------------------------------------o odd/even