why do we declare all the variables inside the loop in pattern printing ? when i declare them in the very beginning of the program i get a different output, why is it so?
Declaring variables in pattern printing
Hey Navdeep, that totally depends on how you have written the code, can you share the corresponding link to your code so that we can tell you according to your code, what is actually happening in it.