using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int[] number = new int[] {1,2,3,4,5 };
Console.Write("输出数组中的数据:");
foreach(int i in number)
{
if(i==3)
{
continue;
}else if(i==5)
{
break;
}
Console.Write(i+" ");
}
Console.ReadLine();
}
}
}
c#第二章课后第二题
最新推荐文章于 2022-03-10 21:41:31 发布