Advertisement
Josif_tepe

Untitled

Jan 5th, 2023
762
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <ctype.h>
  4. #include <string.h>
  5.  
  6.  
  7. int main(int argc, const char * argv[]) {
  8.     char s[1000];
  9.     scanf("%s", s);
  10.    
  11.     int golemi_bukvi = 0;
  12.     for(int i = 0; i < strlen(s); i++) {
  13.         if(isupper(s[i])) {
  14.             golemi_bukvi++;
  15.         }
  16.     }
  17.     printf("%d\n", golemi_bukvi);
  18.     return 0;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement