-
-
Save alsamitech/14a6d41abc1e64fa3f477eb7eb60562e to your computer and use it in GitHub Desktop.
Reverse Factorial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
long unsigned int rf(long unsigned int rf){ | |
long unsigned int d=1; | |
while(rf!=1)rf/=d++; | |
return d-1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment