Home > Net >  Circulation in the two conditions
Circulation in the two conditions

Time:03-19

Someone wrote code, for add the conditions and, in fact is less than 2 wouldn't perform, and this make any sense?

 for (int I=0; I & lt; 20 & amp; & i<2; I++) 
{
The Console. Write (I);
}

CodePudding user response:

refer to the original poster stevenjin response:
someone writes code, conditions for Canada and, in fact is less than 2 wouldn't perform, and this make any sense?

 for (int I=0; I & lt; 20 & amp; & i<2; I++) 
{
The Console. Write (I);
}

No meaning, and it
 
For (int I=0; i<2; I++)

Effect is the same, that is to say, from 0 to 1, and 2 condition does not meet to stop the cycle

CodePudding user response:

Don't ask me why does it have to be out when white crane spreads its wings, and hit each other just a straight punch

You said yesterday that the leadership of less than 20, said today the temporary just want to look at 2, I don't want to comment, and I also want to change the next time you let me come back my behind the deleted line not line??

CodePudding user response:

Again, I don't if you notice today, but what time opening notice, such as

We can also do not have to write an if, direct I & lt; 20 & amp; & False also become, these are not technology, it doesn't matter, can be posted
"

CodePudding user response:

Perhaps the test data is less than 2 o, only two
  •  Tags:  
  • C#
  • Related