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};
            //请完善代码,判断数组中有没有7的整倍数
            for(int i=0;i<num[];i++)
            {
            if(num[i]%7==0)
                {
                Console.Write("有7的整倍数");
                }
             else
                {
                Console.Write("没有7的整倍数");
                }   
            }
        }
    }
}为什么我这样编写显示这个?
Program.cs(14,29): error CS1525: Unexpected symbol `['
Compilation failed: 1 error(s), 0 warnings
求解。
大神一只熊
慕的地6079101
落木_gxy
社会会给有义之人让路
望远
迁就LOSE
相关分类