Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define ll long long
- #define ull unsigned long long
- #define uom unordered_map
- #define pb push_back
- #define yes cout<<"YES\n"
- #define no cout<<"NO\n"
- #define dot(x) fixed<<setprecision(x)
- #define wrench786 ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
- #define PI (acos(-1.0))
- #define eps 0.00001
- const int LIMIT = 10000*10;
- using namespace std;
- int main(){
- int tc;
- cin>>tc;
- while(tc--){
- char ch;
- cin>>ch;
- if(ch>='0' && ch<='9'){
- cout<<ch<<" Is a Digit\n";
- }
- else if(ch>='A' && ch<='Z' || ch>='a' && ch<='z'){
- cout<<ch<<" is an Alphabet : It is an ";
- if(ch=='a' || ch=='A' || ch=='e' || ch=='E' || ch=='i' || ch=='I' || ch=='o' || ch=='O' ||ch=='u' || ch=='U'){
- cout<<"Vowel\n";
- }
- else{
- cout<<"Consonent\n";
- }
- }
- else{
- cout<<ch<<" Is a special character\n";
- }
- }
- }
Add Comment
Please, Sign In to add comment