if 語句還可以帶一個 else 子句(Clause),例如: if (x % 2 == 0) printf("x is even.\n"); else printf("x is odd.\n");. 這裡的%是取模(Modulo)運算符, x%2 ...
確定! 回上一頁