f) To print the pattern 54321 5432 543 54 5 using basic loops
Answers
Answered by
0
Answer:
okkk
Explanation:
class nest5
{
static void main()
{
for(int i=1; i<=5; i++)
{
for(int j=5; j>=i; j--)
{
System.out.print(j);
}
System.out.println();
}
}
}
Similar questions