wrench786

Lab task - (Control -3)

Sep 29th, 2021 (edited)
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. #define ll long long
  4. #define ull unsigned long long
  5. #define uom unordered_map
  6. #define pb push_back
  7. #define yes cout<<"YES\n"
  8. #define no cout<<"NO\n"
  9.  
  10. #define dot(x) fixed<<setprecision(x)
  11. #define wrench786 ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
  12.  
  13. #define PI (acos(-1.0))
  14. #define eps 0.00001
  15. const int LIMIT = 10000*10;
  16. using namespace std;
  17.  
  18. int main(){
  19. int tc;
  20. cin>>tc;
  21. while(tc--){
  22. char ch;
  23. cin>>ch;
  24. if(ch>='0' && ch<='9'){
  25. cout<<ch<<" Is a Digit\n";
  26. }
  27. else if(ch>='A' && ch<='Z' || ch>='a' && ch<='z'){
  28. cout<<ch<<" is an Alphabet : It is an ";
  29. if(ch=='a' || ch=='A' || ch=='e' || ch=='E' || ch=='i' || ch=='I' || ch=='o' || ch=='O' ||ch=='u' || ch=='U'){
  30. cout<<"Vowel\n";
  31. }
  32. else{
  33. cout<<"Consonent\n";
  34. }
  35. }
  36. else{
  37. cout<<ch<<" Is a special character\n";
  38. }
  39. }
  40. }
Add Comment
Please, Sign In to add comment