Give an explanation for predecessor and successor?
Define predecessor and successor.
Predecessor : The predecessor of a number is a number that's one lesser than the given number, has no predecessor.
Examples :
Number | Predecessor |
22 | 21 |
10000 | 9999 |
500 | 499 |
Successor : The successor of a number is a number that's one greater than the given number. Every natural number has a successor.
Examples :
Number | Predecessor |
22 | 23 |
10000 | 10001 |
500 | 501 |