Josif_tepe

Untitled

May 28th, 2026
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.64 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5.  
  6.  
  7. int main() {
  8.     char a[2000], b;
  9.     scanf("%s", a);
  10.    
  11.  
  12.     for(int i = 0; i < strlen(a); i++) {
  13.         if(isalpha(a[i])) {
  14.             if(islower(a[i])) {
  15.                 printf("%c e mala bukva\n", a[i]);
  16.             }
  17.             else {
  18.                 printf("%c e golema bukva\n", a[i]);
  19.  
  20.             }
  21.         }
  22.         if(isdigit(a[i])) {
  23.             printf("%c e cifra\n", a[i]);
  24.         }
  25.  
  26.         if(isalnum(a[i]) == 0) {
  27.             printf("%c e specijalen karakter\n", a[i]);
  28.  
  29.         }
  30.     }
  31.    
  32.    
  33.  
  34.     return 0;
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment