Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add maths/factorial.c — simple factorial program in C#1528

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
srujanasadhusharma-source wants to merge1 commit intoTheAlgorithms:master
base:master
Choose a base branch
Loading
fromsrujanasadhusharma-source:add-factorial-c

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 programmaths/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.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Panquesito7Panquesito7Awaiting requested review from Panquesito7Panquesito7 is a code owner

@tjgurwara99tjgurwara99Awaiting requested review from tjgurwara99tjgurwara99 is a code owner

@alexpantyukhinalexpantyukhinAwaiting requested review from alexpantyukhinalexpantyukhin is a code owner

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@srujanasadhusharma-source

[8]ページ先頭

©2009-2025 Movatter.jp