Computer Science, asked by sanafatima1d, 4 months ago

Write a java program to print the following pattern:
97531 7531 531 31 1​

Answers

Answered by udayagrawal49
19

Answer: The required java program is :-

public class Main {

public static void main(String[] args) {

    for (int i=9 ; i>=1 ; i-=2) {

        for (int j=i ; j>=1 ; j-=2) {

            System.out.print(j);

        }

        System.out.print(" ");

    }

   }

}

Please mark it as Brainliest.

Answered by sudipsarkar71
0

this is the ans

int i, j ; plz put in the upwards

Attachments:
Similar questions