fork download
  1. // code to find a character is Alphabet or Not
  2. // writen by : sammo
  3. #include <stdio.h>
  4. int main()
  5. {
  6. char c;
  7. scanf("%c",&c);
  8. if((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z')){
  9. printf("Alphabet");
  10. }
  11. else{
  12. printf("Not Alphabet");
  13. }
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5292KB
stdin
Standard input is empty
stdout
Not Alphabet