Computer Science, asked by sujatabhattacharya10, 9 months ago

Java programming. Solve this

Attachments:

Answers

Answered by rituaditi
2

Explanation:

class Sum

{

public static void main (String args[ ])

{

int n = 0;

int i = 0;

int s = 0;

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

{

n = i * i;

s = s + n;

}

System.out.println( " s = " + s);

}

}

Hope it helps!

Similar questions