for循环用break跳转

来源:互联网 发布:江苏开放大学网络教育 编辑:程序博客网 时间:2024/05/18 00:05
for(int i=0;i<10;i++){Console.WriteLine(i);if(i==7)    break;}如果是嵌套循环,需要break loop才行