问答详情
源自:5-3 编程练习

关羽,张飞,赵云,马超,黄忠这样显示不是更好?

string[] wuhushangjiang = new string[] { "关羽","张飞","赵云","马超","黄忠" }; for (int i = 0; i < wuhushangjiang.Length; i ++) { if (wuhushangjiang.Length -1 != i) Console.Write(wuhushangjiang[i] + ",");   else  Console.Write(wuhushangjiang[i]); } Console.ReadKey(); 咋就不能弄得好看点呢?

提问者:笔墨遥仙 2017-11-26 18:27

个回答

  • 慕尼黑3932547
    2017-11-27 11:23:09

    我不记得这是哪个题了