Write a java program to find the sum of the given series:
1!+3!+5!+...+19!
Answers
Answered by
1
Explanation: Import java.util.*;
class series{
static void main(){
int s=0,l=0;
int i,j=2;
for (i=1;i<=20;i++){
l=(i*i)-2/j*j;
}
s+=l;
System.out.println(" the sum
is : "+s);
}
}
Similar questions