Give an explanation for predecessor and successor?
Successor and predecessor are also known as after number and before number respectively.
Answer: The number that is written immediately before a number is called its predecessor. The number that is written immediately after a number is called its successor.
For a given number 'n', the predecessor is always 1 lesser than the number that is n - 1 and the successor is always 1 more than the given number that is n + 1.
Let's take an example to understand this.
Let's consider a number 5.
The number just before 5 is 5 - 1 = 4, therefore the predecessor of the number 5 is 4.
The number just after 5 is 5 + 1 = 6, therefore the successor of the number 5 is 6.
Therefore, the predecessor of the number 5 is 4, and the successor of the number 5 is 6.