0

How can I print the pattern below using the " for loop"

54321 4321 321 21 1

25th Feb 2021, 12:49 PM
Alnice Williams
Alnice Williams - avatar
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") }
25th Feb 2021, 1:02 PM
Ashish Gupta
+ 1
Thank u
25th Feb 2021, 3:01 PM
Alnice Williams
Alnice Williams - avatar
0
Thanks
25th Feb 2021, 1:18 PM
Alnice Williams
Alnice Williams - avatar
0
Code I have written is not accurate... Just do some modifications accordingly to get desired result
25th Feb 2021, 1:33 PM
Ashish Gupta
0
I mean using a for loop
25th Feb 2021, 2:25 PM
Alnice Williams
Alnice Williams - avatar