Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int quote_counter;
- char c;
- quote_counter = 0;
- while (c != EOF)
- {
- c = getchar();
- if (c == '"') {
- if (quote_counter % 2 == 0) {
- putchar('\`');
- putchar('\`');
- }
- else {
- putchar('\'');
- putchar('\'');
- }
- quote_counter++;
- }
- else {
- putchar(c);
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment