C++
- voluntas
- @ignis_fatuus
- ブン
- @Linda_pp
- 清楚なC++メイドBOT
- @tzik_tack
- 長谷川一輝
- wraith13
- @jj1bdx
- @cpp_akira
- 安藤敏彦
- @srz_zumix
- Siv3D
- takezoh
- まろ
- @okdshin
- @hnokx
- @ishidakei
- @take_cheeze
- TAKEI Yuya
- @mumumu
- I (@wx257osn2)
- Tommy6
- @tyottyoworks
- ___shanon
- わたやん
- @KorekaraSEDB
- @kariya_mitsuru
- @ciniml
- @beam2d
- @grafi_tt
- @nekketsuuu
- LouiS0616
- @volanja
- 大鎌広
- むてら
- ガチKGB
- 三重野賢人
x
20
1
2
using namespace std;
3
4
int main()
5
{
6
char c;
7
int isUppercaseVowel;
8
9
cout << "Enter an alphabet: ";
10
cin >> c;
11
12
isUppercaseVowel = (c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U');
13
14
if (isUppercaseVowel)
15
cout << c << " is a vowel.";
16
else
17
cout << c << " is a consonant.";
18
19
return 0;
20
}
$ g++ prog.cc -Wall -Wextra -std=c++11 -pedantic
Start
Enter an alphabet: is a consonant.
0
Finish