Skip to content

Conversation

@SoCodeDo
Copy link

Binary and Decimal

Congratulations! You're submitting your assignment.

Copy link
Collaborator

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

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

Well done Sophia, thanks for getting this in. It all works well done.

Comment on lines +10 to +13
binary_array.each do |i|
total = 2 * total + i
end
return total
Copy link
Collaborator

Choose a reason for hiding this comment

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

This all works, but just some indentation needs work.

Suggested change
binary_array.each do |i|
total = 2 * total + i
end
return total
binary_array.each do |i|
total = 2 * total + i
end
return total

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