|
Algorithms_in_C
1.0.0
Set of algorithms implemented in C.
|
Strong number is a number whose sum of all digits’ factorial is equal to the number n For example: 145 = 1!(1) + 4!(24) + 5!(120) More...
#include <assert.h>#include <stdbool.h>#include <stdio.h>Functions | |
| bool | isStrong (int number) |
| Check if given number is strong number or not. More... | |
| void | test () |
| Test function. More... | |
| int | main () |
| Driver Code. More... | |
Strong number is a number whose sum of all digits’ factorial is equal to the number n For example: 145 = 1!(1) + 4!(24) + 5!(120)
| bool isStrong | ( | int | number | ) |
Check if given number is strong number or not.
| number |
true if given number is strong number, otherwise false | int main | ( | void | ) |
Driver Code.