Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.
/ Pronic_Number Public archive

Math problem with pronic number, solution for geekforgeeks

License

Notifications You must be signed in to change notification settings

Mishco/Pronic_Number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Pronic Number

Pronic number is a number which is the product of two consecutive integers. The task is to check and print Pronic Numbers in a range. The first few Pronic numbers are: 0, 2, 6, 12, 20, 30, 42, 56, 72, 90, 110, 132 and so on.

Input:

The first line consists of an integer T i.e number of test cases. The first and only line of each test case contains an integer n.

Output:

Print all the pronic numbers between 0 and n(with spaces in between).

Constraints:

1<=T<=100
1<=n<=1000

Example:

Input:

2
6
56

Output:

0 2 6
0 2 6 12 20 30 42 56

Source

http://practice.geeksforgeeks.org/problems/pronic-number/0

About

Math problem with pronic number, solution for geekforgeeks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published