<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # C 程序:檢查字母是元音還是輔音 > 原文: [https://beginnersbook.com/2017/09/c-program-to-check-whether-an-alphabet-is-vowel-or-consonant/](https://beginnersbook.com/2017/09/c-program-to-check-whether-an-alphabet-is-vowel-or-consonant/) 該程序檢查輸入字符是元音還是輔音。 ## 示例:用于檢查元音或輔音的程序 此程序將字符值(由用戶輸入)作為輸入,并使用`if-else`語句檢查該字符是否為元音或輔音。由于允許用戶以小寫和大寫形式輸入字母,因此程序檢查大寫和小寫元音和輔音。要理解該程序,您應該熟悉以下 [C 編程](https://beginnersbook.com/2014/01/c-tutorial-for-beginners-with-examples/)概念: 1. [C 編程`if`語句](https://beginnersbook.com/2014/01/c-if-statement/) 2. [C 編程`if..else`語句](https://beginnersbook.com/2014/01/c-if-else-statement-example/) ```c #include <stdio.h> int main() { char ch; bool isVowel = false; printf("Enter an alphabet: "); scanf("%c",&ch); if(ch=='a'||ch=='A'||ch=='e'||ch=='E'||ch=='i'||ch=='I' ||ch=='o'||ch=='O'||ch=='u'||ch=='U') { isVowel = true; } if (isVowel == true) printf("%c is a Vowel", ch); else printf("%c is a Consonant", ch); return 0; } ``` 輸出: ```c Enter an alphabet: E E is a Vowel ``` 看看這些相關的 C 程序: 1. [C 程序:將小寫字符串轉換為大寫](https://beginnersbook.com/2015/02/c-program-to-convert-lowercase-string-to-uppercase-string/) 2. [C 程序:將大寫字符串轉換為小寫](https://beginnersbook.com/2015/02/c-program-to-convert-uppercase-string-to-lowercase-string/) 3. [C 程序:查找字符的 ASCII 值](https://beginnersbook.com/2017/09/c-program-to-find-ascii-value-of-a-character/) 4. [C 程序:在不使用預定義函數的情況下連接兩個字符串](https://beginnersbook.com/2015/02/c-program-to-concatenate-two-strings-without-using-strcat/) 5. [C 程序:在不使用`strlen` 的情況下查找字符串的長度](https://beginnersbook.com/2015/02/c-program-to-find-the-length-of-a-string/)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看