📌  相关文章
📜  如何在 python idle 中检查程序的运行时间 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:22.500000             🧑  作者: Mango

代码示例3
def chk():
    n=int(input("enterthe number to check if the number is a multiple of 2"))
    c=1
    f=0
    for i in range(0,n,1):
        if(c==n):
            print("the number is  power of two ")
            f=1
            break
        else:
            c=c*2
    if(f<1):
        print("the number is not a multiple of 2")