-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path29.cpp
More file actions
30 lines (28 loc) · 658 Bytes
/
29.cpp
File metadata and controls
30 lines (28 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//https://dimikoj.com/problems/29/symbol-identity-by
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio (0);
cin.tie (0);
cout.tie (0);
int t;
char ch;
cin >> t;
while (t--) {
cin >> ch;
if (ch >= 'a' && ch <= 'z') {
cout << "Lowercase Character" << "\n";
}
else if (ch >= 'A' && ch <= 'Z') {
cout << "Uppercase Character" << "\n";
}
else if (ch >= '0' && ch <= '9') {
cout << "Numerical Digit" << "\n";
}
else {
cout << "Special Character" << "\n";
}
}
return 0;
}