标签:
1 private void Form2_Load(object sender, EventArgs e) 2 { 3 int num = 0, i = 1; 4 while (i <= 100) 5 { 6 if (i % 3 == 0) 7 { 8 MessageBox.Show(i + ""); 9 num++; 10 11 } 12 13 if (num == 5) //输出5个数之后,语句停止 14 { 15 break; 16 } 17 18 i++; 19 } 20 }
标签:
原文地址:http://www.cnblogs.com/wangfeihu/p/5722347.html