0

When input equal 3 output equal=12, why???

https://code.sololearn.com/cwbSBcsBAUy1/?ref=app

3rd Aug 2019, 9:28 AM
Mohammad Jafer
Mohammad Jafer - avatar
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)
3rd Aug 2019, 10:48 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 3
What output do you expect?
3rd Aug 2019, 10:05 AM
你知道規則,我也是
你知道規則,我也是 - avatar
+ 1
~ swim ~ thanks bro
4th Aug 2019, 6:38 AM
Mohammad Jafer
Mohammad Jafer - avatar
0
9
3rd Aug 2019, 10:21 AM
Mohammad Jafer
Mohammad Jafer - avatar
0
I need sum of factorial 3
3rd Aug 2019, 10:21 AM
Mohammad Jafer
Mohammad Jafer - avatar
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???
3rd Aug 2019, 10:47 AM
Mohammad Jafer
Mohammad Jafer - avatar
0
Thanks😍😍😍😍
3rd Aug 2019, 10:49 AM
Mohammad Jafer
Mohammad Jafer - avatar
0
1!=1 2!=1*2=2 3!=1*2*3=6 sum=1!+2!+3!=9 ~ swim ~
3rd Aug 2019, 10:57 AM
Mohammad Jafer
Mohammad Jafer - avatar