for(i=0; i<=10; i++){ for (n=1; n<=i; n++){ System.out.print(8); } System.out.println(); }