美文网首页
第10次作业

第10次作业

作者: 头有点铁的愣头青 | 来源:发表于2018-12-05 14:59 被阅读0次

    代码

    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

    相关文章

      网友评论

          本文标题:第10次作业

          本文链接:https://www.haomeiwen.com/subject/gzxwcqtx.html