Advertisement
nontawat1996

W3

Oct 1st, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main()
  5. {
  6.     int i,CountUpper=0,CountLowwer=0;
  7.     char input[258]={'\0'};
  8.     gets(input);
  9.     for(i=0;i<strlen(input);i++)
  10.     {
  11.         if(input[i]>='A' && input[i]<='Z') CountUpper++;
  12.         else if(input[i]>='a' && input[i]<='z') CountLowwer++;
  13.     }
  14.     printf("%d\n",CountLowwer);
  15.     printf("%d\n",CountUpper);
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement