In the following loop
for i = 1 to n
doSomething O(1)
for j = 1 to k
doSomething O(1)
Is the runtime still $O(nk)$ even with the expression in the outer loop? Because if I change the order of the loops and $n \neq k$ then doSomething is executed a different amount of times.