rotateArrayimage ()

do tell me what is error in it.

Hi @vikashkmr519,
You took two index n and m while the question demands to take only index n as the array is n*n. It is a square 2D array. Try replacing all the m in code with n and your code will run just fine.And also do not forget to remove the line where you take input m.Try and if you still cannot do ask again i’ll help.