AnsweredAssumed Answered

How long it takes to execute this code?

Question asked by notooth on Mar 31, 2013
Latest reply on Apr 1, 2013 by realhet

Hi everyone,

 

Can anyone tell me how long it takes to execute these code?

 

for (i=0; i>0; i++)

{

     // Codes take time t to execute

}

for (i=0; i<2; i++)

{

     break;

     // Codes take time t to execute

}

for (i=0; i<2; i++)

{

     // Codes take time t to execute

     break;

}

Outcomes