Advertisement
Hamoudi30

Untitled

Jul 15th, 2021
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main () {
  4.     char c;
  5.     cin >> c;
  6.     if (c >= 65 && c <= 90)
  7.         cout << "ALPHA\nIS CAPITAL";
  8.     if (c >= 97 && c <= 122)
  9.         cout << "ALPHA\nIS SMALL";
  10.     if (c >= 48 && c <= 57)
  11.         cout << "IS DIGIT";
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement