C#第二章课后作业3

using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] number = new int[] { 1, 2, 3, 4, 5 };
            foreach (int sll in number)
            {
                if (sll == 3)
                {
                    continue;
                }if (sll == 5) {
                    break;
                }
                Console.WriteLine(sll);

            }
            Console.ReadLine();
        }
    }
}

你可能感兴趣的:(C#第二章课后作业3)