#include<stdio.h> int main(void) { int a,b=0; printf("請問第幾次中止?(1~10)\n"); scanf("%d",&a); while(b<10) {b++; if(a==b) continue; printf("第%d次處理\n",b); } system("pause"); return 0; }
參考資料 每天和程式作伍的研究生
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends:
留言列表