;用VS沒問題,這里就有問題?
bool hasnum=false; ? ? ? ? ? ?foreach(int x in num) ? ? ? ? ? ?{ ? ? ? ? ? ? ? ?if(x%7==0) ? ? ? ? ? ? ? ?hasnum=true; ? ? ? ? ? ? ? ?break; ? ? ? ? ? ?} ? ? ? ? ? ?if(hasnum) ? ? ? ? ? ?Console.WriteLine("有7的整數(shù)倍"); ? ? ? ? ? ?else ? ? ? ? ? ?Console.WriteLine("沒有7的整數(shù)倍");
2016-07-22
你的字打錯了 ? ?是7的整倍數(shù),不是整數(shù)倍 ? 哈哈哈