Column and row designation

if column is being assigned with m and row with n then while taking for loop column col is iterated through n and rows through m .