2018-12-05
2018-12-05 本文已影响0人
柏建春
#代码
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("本次活动的特价商品有:");
string[] name = new string[5];
name[0] = "Nike背包";
name[1] = "Adidas运动衫";
name[2] = "李宁运动鞋";
name[3] = "Kappa外套";
name[4] = "361°腰包";
int n=0;
do
{
Console.WriteLine("{0}", name[n]);
n++;
} while (n <= 4);
Console.ReadKey();
}
}
}
#效果