private void button1_Click(object sender, EventArgs e)
{
int j, counter=0;
j = 2;
for (int i = 0; i < 100; i=i*2)
{
j = j - i;
while (j<25)
{
j = j + 5;
counter++;
}
}
MessageBox.Show("Test" + counter);
}
你好。我正在尝试调试此代码,但无法。
谁能解释为什么这会导致无限循环?