Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Use vector for dynamic array size, add input validation, and modularize average calculationRefactor #176

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Varshamishra56
Copy link

In the enhanced version, I replaced the fixed-size array with a dynamic std::vector to handle varying input sizes more flexibly. Additionally, I added input validation to ensure only integers are accepted and moved the average calculation into a separate function for better modularity and code reuse. These changes make the program more robust and maintainable.

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