Computer Science, asked by prakhar12345678, 9 months ago

Print series in java
1 2 3 4 5
6 7 8 9
10 11 12
13 14
15

Answers

Answered by dk505404
3

Answer:

public class series

{

public static void main(String args[])

{

int i, j, p=0;

for(i=5;i<=5;i++)

{

for(j=1;j<=i;j++)

}

p=p+1;

System.out.print(p);

System.out.println() ;

}

}

Similar questions