# Switch - 寫法 ```c= switch(比對變數){ case 某種值1: /*code here*/ break; case 某種值2: /*code here*/ break; default: //都沒有case的值符合,執行最後這段程式 可以省略 break; } ```