Ruby | Numeric + method
Last Updated :
18 Jan, 2021
The + is an inbuilt method in Ruby returns the addition of two numbers. It returns a + b.
Syntax: a + b
Parameters: The function needs two number whose addition is returned.
Return Value: It returns the addition of two numbers.
Example 1:
Output:
23
Example 2:
Output:
15
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...