Computer Science, asked by babacool9000, 2 days ago

8. Write a program to print the following series: 1 12 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6​

Answers

Answered by rohitkumarsingh1227
0

Answer:

class program

{

public static void main (String args[])

{

for (int a = 1; a<=6;a++){

for (int b= 1; b<=a ; b++)

system.out.print(b);

}

}

}

Similar questions