Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

[Program]: Write a Dart program to find average of numbers by recursion #3500

Closed
Tracked by #3496
harshraj8843 opened this issue Oct 16, 2022 · 1 comment · Fixed by #5604
Closed
Tracked by #3496

[Program]: Write a Dart program to find average of numbers by recursion #3500

harshraj8843 opened this issue Oct 16, 2022 · 1 comment · Fixed by #5604
Assignees
Labels
closed closed issues/PRs Dart dart related good first issue Good for newcomers help wanted Extra attention is needed program

Comments

@harshraj8843
Copy link
Contributor

harshraj8843 commented Oct 16, 2022

Description

Write a Dart program to find average of numbers by recursion

Average of numbers is the sum of all numbers divided by the number of numbers. For example, the average of 1, 2, 3, 4, 5 is 3. The average of 1, 2, 3, 4, 5, 6 is 3.5.

Average of numbers can be calculated by recursion. The average of numbers is the sum of the first number and the average of the rest of the numbers. The average of the rest of the numbers is the sum of the second number and the average of the rest of the numbers. The average of the rest of the numbers is the sum of the third number and the average of the rest of the numbers. And so on.

Input  : 1 2 3 4 5
Output : 3
How to contribute
  • Save the solution in program/program/find-average-of-numbers-by-recursion/program/find_average_of_numbers_by_recursion.dart file
@harshraj8843 harshraj8843 added Dart dart related good first issue Good for newcomers labels Oct 16, 2022
@harshraj8843 harshraj8843 transferred this issue from codinasion/codinasion May 29, 2023
@harshraj8843 harshraj8843 changed the title Write a Dart program to find average of numbers by recursion [Program]: Write a Dart program to find average of numbers by recursion May 30, 2023
@harshraj8843 harshraj8843 added the help wanted Extra attention is needed label Dec 11, 2023
@charan-hash
Copy link
Contributor

!assign

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed closed issues/PRs Dart dart related good first issue Good for newcomers help wanted Extra attention is needed program
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants