#include<stdio.h> int main(void) { int a; scanf("%d",&a); switch(a) { case 1: printf("a"); case 2: printf("b"); case 3: printf("c\n"); } return 0; }
dowhile
一般形式為
- do
陳述句
while(運算式);
先執行陳述句再進行判斷,如果運算式為真,則繼續回圈
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/38534.html
標籤:C
