What is java program to print
1
21
321
4321
54321
Answers
Answered by
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
1
Answer:
the answers is given above
Attachments:
Similar questions