for (int i = 1; i < 10; i++) { for (int s = 1; s <= i; s++) { Console.Write(s + "*" + i + "=" + i * s + " "); if (i == s) { Console.Write("\n"); } } } Console.ReadKey(); }
for (int i = 1; i < 10; i++) { for (int s = 1; s <= i; s++) { Console.Write(s + "*" + i + "=" + i * s + " "); if (i == s) { Console.Write("\n"); } } } Console.ReadKey(); }
本文标题:第八次作业2
本文链接:https://www.haomeiwen.com/subject/iilcqqtx.html
网友评论