Computer Science, asked by achintya1feb, 3 months ago

Write a java program to print the series:
2 4 6 8
3 6 9
4 8
5

Answers

Answered by kamalrajatjoshi94
0

Answer:

public class Series

{

public static void main(String args[ ])

{

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

{

for(b=1;b<=4;b++)

{

while(a*b<10)

{

System.out.print(a*b+ " ");

}

System.out.println();

}

}

}

}

Similar questions