Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Dio
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes hererin String vx="m"; Console.WriteLine("請輸入姓名:"); // string vx = Console.ReadLine(); switch (vx) { case "d": System.Console.WriteLine("Dio"); break; case "s": Console.WriteLine("Scott"); break; case "r": Console.WriteLine("Rex"); break; case "l": Console.WriteLine("Lex"); break; case "m": // 星期五 Console.WriteLine("Moka"); break; // 此為預設 當上面的case都沒達成時則會判斷 default: System.Console.WriteLine("沒有此人啦!!"); break; } } } }
run
|
edit
|
history
|
help
0
<title>Hello world</title>
C# constructor in inheritance
Swap 2
DI
learning
delete_xml_empty_tags
test
Creating arrays
Square Real Matrix
Compare dates c#