Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Closes #3293 #6213

Merged

Conversation

Fukurokudzu
Copy link
Contributor

@Fukurokudzu Fukurokudzu commented Feb 9, 2023

Why:

Closes codinasion/codinasion#2440

What's being changed:

Finds average of digits of a number

Comments:

Could use number.to_s.chars.map(&:to_i).sum.to_f / number.to_s.chars.length variant at line 4, if we need float result.

@Fukurokudzu Fukurokudzu requested review from a team, brundabharadwaj and joao-vitor-souza and removed request for a team February 9, 2023 12:54
@codinasion-bot
Copy link

codinasion-bot bot commented Feb 9, 2023

👋🏻 Hey @Fukurokudzu

💖 Thanks for opening this pull request 💖

This PR will be reviewed and merged shortly.

@codinasion-bot codinasion-bot bot added the triage Waiting for review label Feb 9, 2023
@vercel
Copy link

vercel bot commented Feb 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated
program-api ⬜️ Ignored (Inspect) Feb 10, 2023 at 6:22AM (UTC)
program-website ⬜️ Ignored (Inspect) Feb 10, 2023 at 6:22AM (UTC)

Copy link
Contributor

@harshraj8843 harshraj8843 left a comment

Choose a reason for hiding this comment

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

Thanks for contributing 🤗

@harshraj8843 harshraj8843 merged commit a747bcf into codinasion:master Feb 10, 2023
@codinasion-bot
Copy link

Thanks very much for contributing!

Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours.

Support this project by giving it a star ⭐.

Join Our Community

If you're looking for your next contribution, check out our help wanted issues

@codinasion-bot codinasion-bot bot removed the triage Waiting for review label Feb 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Write a Ruby program to find average of digits of a number
2 participants