https://ide.codingblocks.com/s/317372 can you tell me in this code for finding large factorials what is wrong
Https://ide.codingblocks.com/s/317372 can you tell me in this code for finding large factorials what is wrong
can you please tell me what each of the variable means
m, f[100], c, k
m represents no. of digits after each iTH multiplication,f[100] is digit values after each multiplication,c is carry integer,the loop in which k is used serves the purpose of inserting carry at i=0 index
In the if condition in line 16, also make c = 0 in this condition, after calculating f[i].
And the code inside the next else block should be something like
f[j]=(f[j]*i+c);
c=f[j]/10;
f[j] %= 10;
i figured it out leave it
thanks man your advice worked