Search
 
SCRIPT & CODE EXAMPLE
 

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")
Comment

PREVIOUS NEXT
Code Example
Python :: r char to numeric dataframe all columns 
Python :: python zip folder and subfolders 
Python :: dataframe number of unique rows 
Python :: download unsplash images python 
Python :: flask form 
Python :: how to add a linebreak in python 
Python :: print multiplication table python 
Python :: find the last point of line geopanda 
Python :: how to open pygame 
Python :: List comprehension if-else 
Python :: python 3 tkinter treeview example 
Python :: python staticmethod property 
Python :: handwritten digits data set 
Python :: can serializer returns an object in django 
Python :: using Decorators 
Python :: pyinstaller pymssql 
Python :: how to remove role from people with a reaction discord bot python 
Python :: making ckeditor django responsive 
Python :: Local to ISO 8601: 
Python :: yml anaconda 
Python :: slack bot error not_in_channel 
Python :: gyp err! stack error: command failed: c:python39python.exe -c import sys; print "%s.%s.%s" % sys.version_info[:3]; 
Python :: Converting objects into integers in python 
Python :: flask No application found. Either work inside a view function or push an application context 
Python :: python selenium print element 
Python :: select random img in python using os.listdir 
Python :: ipython history 
Python :: django render example 
Python :: python to linux executable 
Python :: python Sort the dictionary based on values 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =