Computer Science, asked by supritihazra2013, 5 hours ago

2, 22, 222, 2222, 22222 by java using while loop​

Answers

Answered by prosunny8085
0

Answer:

int i=1,j=1;

while( i<=5)

{

while( j<=i)

{

system.out.print("2");

j++;

}

System.out.println();

i++;

}

Similar questions