Skip to content

Conversation

@srujanasadhusharma-source

Description of Change

Added a simple C program maths/factorial.c that computes the factorial
of a non-negative integer using a for loop, as I'm a beginner here.

The program:

  • Prompts the user for an integer.
  • Calculates n! using a loop.
  • Displays the result.

Author: Nagaraj (https://github.com/srujanasadhusharma-source)

  • Added description of change
  • Added file name matches File name guidelines
  • Added tests and example, test must pass
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • I acknowledge that all my contributions will be made under the project's license.

Added maths/factorial.c program — beginner-friendly factorial implementation in C.

@srujanasadhusharma-source
Copy link
Author

Hello maintainers

This is my first contribution to TheAlgorithms/C.
I’ve added a simple C program maths/factorial.c that computes the factorial of a number using a loop.
Please review my PR and let me know if any changes are needed.
Thank you for maintaining this amazing project!

@github-actions
Copy link
Contributor

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant