TheAlgorithms / C-Plus-Plus

Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.
https://thealgorithms.github.io/C-Plus-Plus
MIT License
30.79k stars 7.29k forks source link

[BUG] Incorrect Exception Handling in Recursive Factorial Function #2867

Open henriq4 opened 1 month ago

henriq4 commented 1 month ago

Description

The bug occurs in a recursive factorial function that incorrectly throws an exception when n is less than 20, instead of when n exceeds 20.

Expected behavior

Actual behavior

Steps to reproduce

Context

Additional information

No response

github-actions[bot] commented 2 days ago

This issue 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.