Computer Science, asked by mayank6077, 8 months ago

Write a program in Java to display the given pattern . 97531 9753 975 97 9

Answers

Answered by Sd12365
1

Answer:

class p1

{

public static void main(int k )

{

for(int i=5;i>=1;i--)

{

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

{

System. out.print(k);

k=k-2;

}

System. out. println( );

}

}

}

Take k here as 9 .

.................HOPE IT HELPS YOU..............

.......PLEASE MARK IT AS BRAINLIEST.......

Similar questions