Question #42555

how to program this using two for loops in java
*
**
***
****

Expert's answer

public class Main {    public static void main (String[] agrc) {        for ( int i = 1; i < 10; i++ ) {            for ( int j = 1; j < 10; j++ ) {                System.out.print (j + " | ");            }            System.out.println();        }    }}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS