o (n*m)

for(int i = 0, i < m, i++)
    for(int j = 0, j < n, j++)
        //code
Gorgeous Grouse