Write a program to generate the following output:
2
4
6
8
Answers
Answered by
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