Computer Science, asked by kondeputejaswi, 3 months ago

a factoral of a non negative integer n, denoted by n! is the product of all integers lesscthan or equal to n . you are required to implement the following function
int sumfactorialdigits (int n) ;
the function accept a positive integer n as it's argument. you are required to calculate the sum of all the digits of a number n and return the same
note:
0! =1
n>=0​

Answers

Answered by Shatakshisingh1341
0

A number N is called a factorial number if it is the factorial of a positive integer. For example, the first few factorial numbers are

1, 2, 6, 24, 120, …

Given a number n, print all factorial numbers smaller than or equal to n.

Attachments:
Similar questions