哪里出錯了?????
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
? ? class Program
? ? {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? //聲明整型數組,保存一組整數
? ? ? ? ? ? int[] num = new int[] { 3,34,43,2,11,19,30,55,20};
? ? ? ? ? ? bool beishu=false;
? ? ? ? ? ? for(int m=0;m<num.Length;m++){
? ? ? ? ? ? ? ? if(num[m]%7==0){
? ? ? ? ? ? ? ? ? ? beishu=true;
? ? ? ? ? ? ? ? ? ? break;
? ? ? ? ? ? ? ? }
? ? ? ? ? ? }
? ? ? ? ? ? if(beishu)
? ? ? ? ? ? { Console.WirteLine("有7的整倍數");}
? ? ? ? ? ? else
? ? ? ? ? ? {Console.WriteLine("沒有7的整倍數"); }
? ? ? ? ? ??
? ? ? ? }
? ? }
}
2017-07-09
?【【【 { Console.WirteLine("有7的整倍數");}】】】
? ? ? ? ? ? else
? ? ? ? ? ? {Console.WriteLine("沒有7的整倍數"); }
倒數第三行代碼拼寫錯誤,Write拼寫成Wirte
2017-01-19
它這個好像要求用foreach才算對