0
To print the following series in java: S=2!+4!+6!+8!+10!+......+20!
6 Answers
+ 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?
+ 2
can you give more detail?
what's the problem ?
+ 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)
+ 2
https://code.sololearn.com/cO7131v20VkF/?ref=app
Thanks for paying heed to my silly question. But I no longer need an answer.
+ 1
The sum is to be displayed.
0
Do your homework kid and eat your vegetables!