Skip to content

Refactor factorial program for better readability#6

Open
Shirisha-g08 wants to merge 1 commit intoAishwarya1025:mainfrom
Shirisha-g08:improve-factorial-code
Open

Refactor factorial program for better readability#6
Shirisha-g08 wants to merge 1 commit intoAishwarya1025:mainfrom
Shirisha-g08:improve-factorial-code

Conversation

@Shirisha-g08
Copy link
Copy Markdown

✅ What changed

  • Refactored factorial logic into a reusable function
  • Improved variable names
  • Added input prompt
  • Improved invalid input message

🎯 Why

This makes the code more readable, beginner-friendly, and reusable.

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