Skip to content

Conversation

@lqwall
Copy link

@lqwall lqwall commented May 22, 2025

遇到7的倍数时输出Hub

@lqwall
Copy link
Author

lqwall commented May 22, 2025

该功能已测试,请尽快审核

class Fizzbuzz
def calculate number
if number.to_s.include? '7'
if number % 7 ==0
Copy link
Author

Choose a reason for hiding this comment

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

缩进不对

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.

1 participant