class Program { public static void Main() { string week = "月火水木金土日"; string format = "今日は{0}曜日です"; foreach ( char day in week ) { string result = System.String.Format(format,day); System.Console.WriteLine(result); } }}こんなんでいいの? つか、何がわからんかったのかしら?
管理者用
- Child Tree -