Computer Science, asked by mahek1175, 10 months ago

Write a JAVA Program to display the following pattern:
99999
77777
55555
33333
1 1 1 1 1

Answers

Answered by vicky8764
10

Answer:

int n=9;

for(int i=1;i<=5;i++)

{

for(int j=1;j<=5;j++)

System.out.print(n);

System.out.println();

n=n-2;

}

Answered by ashwina9180vps
1

Answer:

int n=9;

for(int i=1;i<=5;i++)

{

for(int j=1;j<=5;j++)

System.out.print(n);

System.out.println();

n=n-2;

}

Explanation:

Can you please mark me as brainliest and thanks me

Similar questions