Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- bool op=false;
- char tmp;
- int main() {
- while (scanf("%c", &tmp)!=EOF) {
- if (tmp=='"') {
- if (op) printf("''");
- else printf("``");
- op=!op;
- }
- else printf("%c", tmp);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement