Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pronic number program in python

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")
Source by www.codespeedy.com #
 
PREVIOUS NEXT
Tagged: #pronic #number #program #python
ADD COMMENT
Topic
Name
6+3 =