I want to below pattern program without using third loop in javascript.
1
2 2
2 2
3 3 3
3 _ 3
3 3 3
4 4 4 4
4 _ _ 4
4 _ _ 4
4 4 4 4
5 5 5 5 5
5 _ _ _ 5
5 _ _ _ 5
5 _ _ _ 5
5 5 5 5 5
Note:underscore represent empty place here.
Please help me to find out this problem solution and Thank in Advance.
I tried 2D Array and store the result 2D array but it doesn't work for me.
Aucun commentaire:
Enregistrer un commentaire