Skip to content

Instantly share code, notes, and snippets.

View cupofjoey's full-sized avatar

Joe Hill cupofjoey

View GitHub Profile
# Problem Statement
# Create a class Calculator, which performs addition and subtraction of two numbers at a time.
class Calculator
def add(a, b)
a+b
end
def subtract(a, b)
a-b
end