0
When input equal 3 output equal=12, why???
10 ответов
+ 4
What happen in this code is:
j=1:
f=1*1 (f=1)
j=2: (at the moment f is 1)
f=1*1 (f=1)
f=1*2 (f=2)
j=3: (at the moment f is 2)
f=2*1 (f=2)
f=2*2 (f=4)
f=4*3 (f=12)
+ 3
What output do you expect?
+ 1
~ swim ~ thanks bro
0
9
0
I need sum of factorial 3
0
CarrieForle i need sum of factorial 3. if my input 3, output must be 9, but when i give input 3 output equel to 12, why???
0
Thanks😍😍😍😍
0
1!=1
2!=1*2=2
3!=1*2*3=6
sum=1!+2!+3!=9
~ swim ~