Java programming. Solve this
Attachments:
Answers
Answered by
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
Computer Science,
4 months ago
Physics,
4 months ago
Social Sciences,
9 months ago
Social Sciences,
9 months ago
Math,
1 year ago
Biology,
1 year ago