For a n_input AND gate, the number of its inputs may be up to 2^n
举一反三
- A 2-input gate produces a HIGH output only when the inputs agree. This type of gate is a(n) A: OR gate B: AND gate C: NOR gate D: XNOR gate
- For the XOR gate,the output is TRUE if an odd number of inputs are TRUE.
- The output of a OR gate is LOW only when all its inputs are LOW
- The output of a OR gate is LOW only when all its inputs are LOW A: 正确 B: 错误
- 题目:将一个正整数分解质因数。例如:输入90,打印出90=2*3*3*5. n = int(input("input number:")) print ("n = %d" % n) for i in range(2,n + 1): while __________ if n % i == 0: print(str(i)) print("*") n = n / i else: break print( "%d" % n)