Computer Science, asked by seeratkaur2004, 9 months ago

What is java program to print
1
21
321
4321
54321

Answers

Answered by hgggdfhhj
5

Answer:

{

import java .until.*;

public class Java

{

public static void main (String args[ ])

{

Scanner sc = new Scanner(System.in);

int i,j ;

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

{

for (j=I;j>=1;j--)

{

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

}

System.out.println();

}

}

}

Answered by varman17
1

Answer:

the answers is given above

Attachments:
Similar questions