02课后作业02

来源:互联网 发布:openfire源码下载 编辑:程序博客网 时间:2024/05/12 09:53
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{    class Program    {        static void Main(string[] args)        {            int[] number = new int[] { 1, 2, 3, 4, 5 };            foreach (int temp in number)            {                if (temp % 5 == 0)                    break;                if (temp % 3 == 0)                    continue;                Console.Write(temp + "");            }            Console.ReadLine();        }    }}

0 0