Skip to content

Conversation

@an2kab
Copy link
Owner

@an2kab an2kab commented Sep 14, 2024

No description provided.

Copy link

@dirtymew dirtymew left a comment

Choose a reason for hiding this comment

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

Привет Андрей

хорошая работа - тесты зеленые

зачет

...
// ваш код здесь
speedMs := meanSpeed(action, duration) * kmhInMsec
k1 := walkingCaloriesWeightMultiplier * weight

Choose a reason for hiding this comment

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

k1 k2 И так далее - плохие названия для переменных

они ничего не говорят о том для чего они

// ваш код здесь
speedMs := meanSpeed(action, duration) * kmhInMsec
k1 := walkingCaloriesWeightMultiplier * weight
k2 := math.Pow(speedMs, 2) / (height / 100)

Choose a reason for hiding this comment

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

нужно использовать cmInM

и тут возможно деление на 0

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.

3 participants