生肖

作者: pengtuanyuan | 来源:发表于2016-12-22 22:03 被阅读0次

    ```

    using System;

    using System.Collections.Generic;

    using System.Linq;

    using System.Text;

    using System.Threading.Tasks;

    namespace Practice1

    {

    class Program

    {

    static void Main(string[] args)

    {

    string[] animal = { "鼠", "牛", "虎", "兔", "龙", "蛇", "马", "羊", "猴", "鸡","狗","猪" };

    string animalStr = "";

    for (int i = 0; i < animal.Length;i++ )

    {

    animalStr += animal[i];

    if(i

    animalStr += "|";

    }

    }

    Console.WriteLine(animalStr);

    Console.ReadKey();

    }

    }

    }

    ```

    相关文章

      网友评论

          本文标题:生肖

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