Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- int i,l,count=0;;
- char s[100000];
- while(gets(s))
- {
- l=strlen(s);
- for(i=0;i<l;i++)
- {
- if(s[i]=='"')
- {
- count=count+1;
- if(count%2==1)
- printf("``");
- else
- printf("''");
- }
- else
- printf("%c",s[i]);
- }
- printf("\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement