Computer Science, asked by aryaavritti24, 10 months ago

java program on this pattern

12345
123
1 ​

Answers

Answered by rohanpawar10906
1

Answer:

class Brainly

{

public static void main(String args[])

{

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

{

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

System.out.print(j);

System.out.println();

}

}

}

Hope this helps!

please mark as brainlest answer

Similar questions