## How to check Pronic number in java / Program to check for Pronic number in java

**What is a Pronic Number ?**

A number which is the product of two consecutive numbers is a **Pronic Number**. Consecutive means the *numbers which come one after other when counted in ascending order* such as 2,3; 5,6; 98,99 and so on. Thus, a product of any two consecutive numbers is a Pronic number. **Example**, **12** is a product of 3 and 4 (consecutive numbers), thus it is a Pronic number. Other examples of Pronic numbers are **20** (product of 4 and 5), **42 **(product of 6 and 7), **72** (product of 8 and 9) and so on.