Advertisement
fr1sk

Zadatak2

Dec 21st, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<ctype.h>
  3.  
  4.  
  5.  int main()
  6.  
  7. {
  8.   int br=0;
  9.   int brm=0;
  10.   char c;
  11.  
  12.   while((c=getchar()) !=EOF){
  13.   if (isupper(c))
  14.   {
  15.     br++;
  16.   //c=tolower(c);
  17.  
  18.   }
  19.   if (islower(c))
  20.   {
  21. brm++;
  22. c=toupper(c);
  23.  
  24.  
  25.   }
  26.  
  27.   printf("%c",c);
  28.  
  29. }
  30. printf("Broj velikih slova %d ", br);
  31. printf("Broj malih slova %d", brm);
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement