代码
try
{
string[] sp=new string[] {"Nike背包","Adidas运动衫","李宁运动鞋","Kappa外套","361°腰包"};
Console.WriteLine("本次活动特价的商品有:");
for (int i = 0; i < sp.Length; i++)
{
Console.WriteLine(sp[i]);
}
}
catch
{
Console.WriteLine("你输入有错误");
}
Console.ReadKey();
效果
1.png
网友评论