Computer Science, asked by swastil33, 1 year ago

write a program to calculate and print the sum of the series: X/2+X/5+X/8+...............X/20​

Answers

Answered by pallavi89
1

Answer:

class a

{

public static void main ()

{

int x, s ;

for(int i =2 ; i<=20 ; i+=3);

{

s= s + x/2;

System.out.println( s );

}

}

}

Similar questions