|
Algorithms_in_C++ 1.0.0
Set of algorithms implemented in C++.
|
A simple program to check if the given number is a factorial of some number or not. More...
#include <cassert>#include <iostream>Namespaces | |
| namespace | math |
| for IO operations | |
Functions | |
| bool | math::is_factorial (uint64_t n) |
| Function to check if the given number is factorial of some number or not. | |
| static void | tests () |
| Self-test implementations. | |
| int | main () |
| Main function. | |
A simple program to check if the given number is a factorial of some number or not.
A factorial number is the sum of k! where any value of k is a positive integer. https://www.mathsisfun.com/numbers/factorial.html
| int main | ( | void | ) |
|
static |
Self-test implementations.