Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drew's solution #62

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Drew's solution #62

wants to merge 3 commits into from

Conversation

drewby08
Copy link

@drewby08 drewby08 commented Feb 2, 2018

No description provided.

lib/tree.rb Outdated
end

def add_apples
num_apples = rand(1..5) * @age
i=0
while i < num_apples
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the times method to simplify this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants