Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- int i, count = 0,length;
- char s[100];
- while (gets(s))
- {
- length = strlen(s);
- for (i = 0; i <length; i++)
- {
- if (s[i] == '"')
- {
- 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