Starting from left-to-right if no digit is exceeded by the digit to its left the number is called an increasing number. 125569 is an increasing number. Similarly if no digit is exceeded by the digit to its right the number is called a decreasing number. 77632 is a decreasing number. A positive integer that is neither increasing nor decreasing is called a bouncy number. 244369 is a bouncy number.
The C Program given with this post checks whether the given number is an increasing, decreasing or bouncy number.
Figure Below Shows a Sample Output
No comments:
Post a Comment