#作业目标:
##编码:
/**显示商品名称
* 在控制台显示5件特价商品名称
* */
string[] name = {"Nike背包","Adidas运动衫","李宁运动鞋","Kappa外套","361腰包"};
Console.WriteLine("本次活动特价商品有:");
for (int i = 0; i < name.Length; i++)
{ Console.WriteLine("{0}.{1}",i+1,name[i]);
}
Console.ReadKey();
/**显示商品名称
* 在控制台显示5件特价商品名称
* */
string[] name = {"Nike背包","Adidas运动衫","李宁运动鞋","Kappa外套","361腰包"};
Console.WriteLine("本次活动特价商品有:");
for (int i = 0; i < name.Length; i++)
{ Console.WriteLine("{0}.{1}",i+1,name[i]);
}
Console.ReadKey();