■No9952 (επιστημη さん) に返信 > コンソール・アプリに仕立て直し、for-loop回るたんびにConsole.WriteLine(x)すりゃわかると思う。 ありがとございます。 ただ、コンソールアプリではできたのですが、IDEではどこの記述がおかしのでしょうか? namespace ConsoleApplication1 { class Program { static void Main(string[] args) { for (int x = 0; x <= 100; ++x) { if(x%3==0) { Console.Write(("F").ToString()); } else if (x%5 == 0) { Console.Write(("p").ToString()); } else if (x % 3 == 0 && x % 5 == 0) { Console.Write(("k").ToString()); } else { Console.Write((x).ToString()); } } } } }
- Child Tree -