What is the purpose of third for loop,the code is alsworking without that. | SoloLearn: Learn to code for FREE!

+2

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

For loop

11/17/2020 3:26:35 PM

Anas kayani

7 Answers

New Answer

+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.

+1

Thanks for helping

+1

0

https://code.sololearn.com/cvWzsPxNRAQ1/?ref=app

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

0

Yes you are right

0

But loop is working without that condition