Find sum of series
S= (a 2!) - (a 3!)+ (a 4!)- (a/5!)+
+ (a/10!)
Answers
Answered by
25
class Series
{
void main(double a)
{
double S=0.0;
for(int b=2;b<=10;b++)
{
int j=1;
for(int k=1;k<=b;k++)
j=j*k;
if(b%2==0)
{
S=S+(a/j);
}
else
S=S-(a/j);
}
System.out.println(S);
}
}
Attachments:
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Science,
5 months ago
English,
10 months ago
Psychology,
10 months ago
Math,
10 months ago