Pseudocode of pattern example

how is the while loop work as print multiple columns value

The while loop will run for the number of times equal to the number of columns.
For the 1st iteration,it will print the elements in first column
In the 2nd iteration, it will print the elements in second column and so on…
Dry run your code by yourself. You will understand it better.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.