... %f : 浮點數; %c : 字元. scanf 輸入時須在變數名稱前面加位址符號&,printf 輸出時不需要加& ... char c;. printf("請輸入一個整數: ");. scanf(" %d", &a);.
確定! 回上一頁