Advertisement
valve2

//prog that determines if input is alphabet

Jan 24th, 2023
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. //prog that determines if input is alphabet
  2. #include <stdio.h>
  3. char letter;
  4. int main() {
  5.     printf("Enter the letter to distinguish if it's in the alphabet    ");
  6.     scanf("%c", &letter);
  7.     if ((letter > 'a' && letter < 'z') || (letter > 'A' && letter < 'Z'))
  8.         printf("alphabet");
  9.     else
  10.         printf("blyat");
  11.    
  12.     return 0;
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement