Python program to print all pronic numbers between 1 and 100The pronic number is a product of two consecutive integers of the form: n(n+1). For example: 6 = 2(2+1)= n(n+1), Some pronic numbers are: 0, 2, 6, 12, 20, 30, 42, 56 etc. In this program, we need to print all pronic numbers between 1 and 100 by following the algorithm as given below: ALGORITHM:
PROGRAM:Output: Pronic numbers between 1 and 100: 2 6 12 20 30 42 56 72 90 Next TopicPython Programs |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India