This program is supposed to calculate:
S= 2! -4! +6! -8! ..n terms

public class Series7
{
int sum, i, term, j, prod;
public void main(int n)
{
sum = 0;
term=2;