📜  python代码示例中的pronic number程序

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

代码示例1
n = int(input("Enter a number: "))
f = 0
for i in range(n):
    if i * (i + 1) == n:
        f = 1
        break

if f==1:
    print("Pronic number")
else:
    print("Not a Pronic number")