Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n,i;
- char str[100],j;
- scanf(" %d ",&n);
- for(i=0;i<n;i++){
- gets(str);
- for(j=0; str[j]!='\0'; j++);
- printf("%d\n",j);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement