Computer Science, asked by FreeBird27, 1 year ago

write a program in java to print the pattern using nested for loop​

Attachments:

Answers

Answered by percytrar
3

Answer:

Not writing the whole program, just the logic for the pattern.

for(int i = 7; i > 0; i -= 2){

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

          System.out.print(j+" ");

     }

     System.out.println();

}

Similar questions