0

To print the following series in java: S=2!+4!+6!+8!+10!+......+20!

28th Sep 2018, 4:49 PM
NilishaB
NilishaB - avatar
6 Respuestas
+ 3
I see you also sum all the factorial and assign the sum into 'S', do you want to display every factorial of even numbers from 2 to 20, or do you want to display the sum ('S')? Can you show your code in attempt to solve this?
29th Sep 2018, 4:40 AM
Ipang
+ 2
can you give more detail? what's the problem ?
28th Sep 2018, 7:48 PM
Daniel (kabura)
Daniel (kabura) - avatar
+ 2
It's related to factorials in Java, where 2! + 4! + 6! + 8!.......+ 20! means: (1*2)+(1*2*3*4)+(1*2*3*4*5*6)+(1*2*3*4*5*6*7*8)+(1*2*3*4*5*6*7*8*9*10)........(1*2*3*4*5*6*7*8*9.....*20)
29th Sep 2018, 1:52 AM
NilishaB
NilishaB - avatar
+ 2
https://code.sololearn.com/cO7131v20VkF/?ref=app Thanks for paying heed to my silly question. But I no longer need an answer.
29th Sep 2018, 9:54 AM
NilishaB
NilishaB - avatar
+ 1
The sum is to be displayed.
29th Sep 2018, 5:37 AM
NilishaB
NilishaB - avatar
0
Do your homework kid and eat your vegetables!
29th Sep 2018, 9:14 AM
Chriptus13
Chriptus13 - avatar