Run ID:77799

提交时间:2024-06-15 13:47:16

# include<iostream> using namespace std; int main(){ char a; cin>>a; if(a>='A'&& a<='Z'){ if(a=='A'||a=='O'||a=='I'||a=='U'||a=='E'){ cout<<"Upper Vowel"; } else{ cout<<"Upper Letter"; } } else if(a>='a' && a<='z'){ if(a=='a'||a=='o'||a=='i'||a=='u'||a=='e'){ cout<<"Lower Vowel"; } else{ cout<<"Lower Letter"; } } else if(a>='0'&&a<='9'){ cout<<"Digit"; } else{ cout<<"Other"; } return 0; }