top of page
  • Writer's pictureSatyam Gupta

Bouncy Number in Java

Bouncy Number in Java

Question : Write a program to check whether a number is Bouncy Number or not?


Bouncy Number : A positive integer that is neither in increasing nor decreasing number is called a bouncy number.

In other words, A number whose digits are unsorted.


Increasing Number : In an integer traversing from left to right if the current digit is greater than or equal to the previous digit, the number is known as increasing numbers.

Ex : 23689


Decreasing Number : In an integer traversing from left to right if the current digit is less than the previous digit, the number is known as decreasing numbers.

Ex : 98632



Example of Bouncy Number : 13174, 101, 15296 etc.


Note : There is no Bouncy Number between 1 to 100.



Note : To understand the program clearly watch this video : Bouncy Number in Java

 

Program to check Bouncy Number in Java :-

Checkout Source Code : Click here

Program Video : Watch Now







78 views0 comments

Recent Posts

See All
Post: Blog2_Post
bottom of page