Ruby Integer succ() function with example
The succ function in Ruby returns the immediate successor of the number, i.e., it returns number + 1. If a float value is used, it throws an error message. Syntax: number.succ Parameter: The function takes the integer whose next is to be returned. Return Value: The function returns the immediate suc