APCSAPCS 觀念題筆記2022年1月8日217 views1 minute read switch-case 如果沒有 break 要接續下去。int a = 5; int plus(){ a++; } int main(){ int a = 10; plus(); cout << a; } //ans is 10 not 11.int a, b; cin >> a >> b; while(b != 0){ int c = a % b; a = b; b = c; } cout << a << endl;分享文章!