哪错了???
int[] num = new int[] { 3,34,43,2,11,19,30,55,20}; bool has7=false; foreach(int x in num) {if(x%7==0) { has7=true; break; } } Console.WriteLine(has7?"有7的倍数","没有7的倍数" );哪错了
int[] num = new int[] { 3,34,43,2,11,19,30,55,20}; bool has7=false; foreach(int x in num) {if(x%7==0) { has7=true; break; } } Console.WriteLine(has7?"有7的倍数","没有7的倍数" );哪错了
2016-11-09
举报