1234
1234
please tell the answer of nested loops
Answers
Answered by
2
Answer : Here is your answer.
< hr/ ><hr/>
class x
{
static void main()
{
for(int i=5;i>=1;i--)
{
for(int j=1;j<=i;j++)
System.out.print(j);
System.out.println();
}
}
}
< hr/ ><hr/>
Similar questions