e) for loop programming
2, 4, 6, ...n
Answers
Answered by
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
Sociology,
1 month ago
English,
1 month ago
Chemistry,
2 months ago
Math,
9 months ago
Social Sciences,
9 months ago