📅  最后修改于: 2022-03-11 14:45:12.638000             🧑  作者: Mango
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")