pls answere this,

which of the following takes less cpu time?

1.

for(i=0;i<1000;i++)
for(j=0;j<100;j++)
x=y;


2.
for(j=0;j<100;j++)
for(i=0;i<1000;i++)
x=y;