Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- int main()
- {
- char str[10000000];
- int i,cnt=0;
- for(i=0;scanf("%c",&str[i])!=EOF;i++){
- if(str[i]=='"'){
- cnt++;
- if(cnt%2!=0){
- str[i]='`';
- i++;
- str[i]='`';
- }
- else{
- str[i]='\'';
- i++;
- str[i]='\'';
- }
- }
- }
- for(i=0;str[i];i++){
- printf("%c",str[i]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement