Problem in the code

hello @dipeshpandey2001

aslo write ur display function

https://ide.codingblocks.com/s/480149 pls check now,and why should we not use while(i<j) first i swapped 1st coloumn with 2nd coloumn,now output will be transpose of left elements so did it,how should i do?

just start second loop from i

OKAY understood;; and what changes will we make if we want in clockwise instead of anticlockwise?

reverse columwise and then take transpose

https://ide.codingblocks.com/s/480333 pls check this code for cloclwise direction

yes understood,thank you;)

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.