+ 2

How can write program to calculate £(summation 1_5)x!/y!

loop

2nd Apr 2017, 8:25 PM
Bts...
Bts... - avatar
13 Answers
+ 1
https://youtu.be/cNze5ZAlp2w SEE C PROGRAM SUMMATION
2nd Aug 2017, 1:28 PM
Jamiul Alam Rejon
Jamiul Alam Rejon - avatar
+ 8
JAVA int fact =0; for(int x=1;x<=5;x++){ fact=fact +( fact(x)*fact(y)); } For method fact ,see my code https://code.sololearn.com/cym9PjHSlinN/?ref=app
2nd Apr 2017, 8:42 PM
Meharban Singh
Meharban Singh - avatar
+ 8
Any other problem, comment down.I will not answer now as it is bed time. Good night.
2nd Apr 2017, 8:48 PM
Meharban Singh
Meharban Singh - avatar
+ 7
well, fact will ADD to some non zero number inside the for loop.Hence the loop will run 5 times,each time add some non zero stuff to fact,which was initailly zero but now has some value.
2nd Apr 2017, 8:47 PM
Meharban Singh
Meharban Singh - avatar
+ 2
these are total limits of summation
2nd Apr 2017, 8:31 PM
Bts...
Bts... - avatar
+ 1
what is 1_5
2nd Apr 2017, 8:28 PM
Edward
+ 1
1 through 5?
2nd Apr 2017, 8:28 PM
Edward
+ 1
but there are two variables?
2nd Apr 2017, 8:38 PM
Edward
+ 1
yes
2nd Apr 2017, 8:40 PM
Bts...
Bts... - avatar
+ 1
and I think summation start from number 1 to number 2
2nd Apr 2017, 8:41 PM
Bts...
Bts... - avatar
+ 1
how can you make int fact=0
2nd Apr 2017, 8:45 PM
Bts...
Bts... - avatar
+ 1
or input this equation for 5 times
2nd Apr 2017, 8:49 PM
Bts...
Bts... - avatar
+ 1
https://youtu.be/cNze5ZAlp2w SEE C PROGRAM SUMMATION
2nd Aug 2017, 1:31 PM
Jamiul Alam Rejon
Jamiul Alam Rejon - avatar