fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. char A;
  7. cin >> A;
  8. if ((int)A >= 48 && (int)A < 65) {
  9. cout << "IS DIGIT";
  10. }
  11. else { cout << "ALPHA"<<endl;
  12. if ((int)A >= 65 && (int)A < 97) {
  13. cout << "IS CAPITAL";
  14. }
  15. else { cout << "IS SMALL"; }
  16. }
  17.  
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
ALPHA
IS SMALL