Computer Science, asked by navalseaver56, 3 months ago

Write a program to generate the following output:
2
4
6
8​

Answers

Answered by kamalrajatjoshi94
0

Answer:

Program:-

public class Pattern

{

public static void main(String args[ ])

{

int a;

for(a=2;a<=8;a=a+2)

{

System.out.println(a);

}

}

}

Similar questions