+ 2

What is the purpose of third for loop,the code is alsworking without that.

For loop

17th Nov 2020, 3:26 PM
Anas kayani
Anas kayani - avatar
7 ответов
+ 1
Anas kayani if you wanna see if the second loop working don't print spaces for example use cout<<"<" try to print anything else that you can see, but spaces u can't see them.
17th Nov 2020, 3:48 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
+ 1
Thanks for helping
17th Nov 2020, 3:52 PM
Anas kayani
Anas kayani - avatar
+ 1
No problem
17th Nov 2020, 3:53 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
17th Nov 2020, 3:26 PM
Anas kayani
Anas kayani - avatar
0
Anas kayani in the second for loop the j should be >=0 bkoz when you set it to j<= the loop will never work
17th Nov 2020, 3:45 PM
Khaled ^^ خالد القريشي‎
Khaled ^^ خالد القريشي‎ - avatar
0
Yes you are right
17th Nov 2020, 3:46 PM
Anas kayani
Anas kayani - avatar
0
But loop is working without that condition
17th Nov 2020, 3:46 PM
Anas kayani
Anas kayani - avatar