Josif_tepe

Untitled

Aug 26th, 2026
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <ctype.h>
  4. #include <math.h>
  5.  
  6.  
  7. int golemi_bukvi(char * s) {
  8.     int bukvi = 0;
  9.     for(int i = 0; i < strlen(s); i++) {
  10.         if(isupper(s[i])) {
  11.             bukvi++;
  12.         }
  13.     }
  14.     return bukvi;
  15. }
  16.  
  17. int main(int argc, char * argv[]) {
  18.    
  19.     char s[2000];
  20.     scanf("%s", s);
  21.  
  22.     int p = golemi_bukvi(s);
  23.     printf("%d\n", p);
  24.  
  25. }
  26.  
  27.  
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment