at 7:02 col<=row-2 can u explain and also 7;39 endl explain
At 7:02 col<=row-2 can u explain and also 7;39 endl explain
from the pattern which is required as output we can see that the even row has 1 at the start and end
so if the row no is 4
then there are in total 2 0`s
hence we stop at col <= row-2
so that we have row -2 0`s places and a 1 at the start and end
endl is used to add a new line
ie if we do not add endl then all the output comes in one line
which is not what is desired
hence we add endl to break the current line and continue printing the output in the next line
maam can u explain me this problem in brief i didnt get it in the"basic problem solving " portion also . I am new to coding can you please explain me
could u share the question u are talking of
the link to the question
or are u taking of some video from the course?