Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Problem 8 GROUP 3*/
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- int isCapital(char c){
- return c<='Z' && c>='A';
- }
- int main(){
- char* s=(char*)malloc(10000);
- scanf("%s",s);
- int x,n=strlen(s),count=1;
- for(x=0;x<n;x++)if(isCapital(s[x]))count++;
- printf("%d\n",count);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement