Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char** argv) {
- char ch;int cont=0;
- while (scanf("%c",&ch)==1){
- if (ch=='"'){
- cont++;
- if (cont %2==0){
- printf("''");
- }else{
- printf("``");
- }
- }else{
- printf("%c",ch);
- }
- }
- return (EXIT_SUCCESS);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement