Computer Science, asked by ritars1977, 2 months ago

e) for loop programming
2, 4, 6, ...n​

Answers

Answered by amansarrafas24payxgs
0

Answer:

This program us for Java

class Even

{

public void main(int n)

{

for(int i = 2;i <= n;i+=2)

{

System.out.print(i + " ");

}

}

}

I hope you find it useful... If you have any query do comment, I will try to solve it...

Similar questions