0
How can I print the pattern below using the " for loop"
54321 4321 321 21 1
6 Answers
+ 1
Make a loop to change lines...and other nested loop to print the values
Like
For(i=0;i<5;i++)
{
For (j=0;j>5-i;j++)
{
Print(5-j)
}
Print("\n")
}
+ 1
Thank u
0
Thanks
0
Code I have written is not accurate... Just do some modifications accordingly to get desired result
0
I mean using a for loop