rev='made'/> name='keywords'/> name='author'/> ANURANAN: UVa Solution 272: TeX Quotes

Welcome Note

Hi,
I'm Anisuzzaman Babla . I am a full stack Android Application Developer. I am working with Android for more than two years. I have completed my graduation from IIT, Jahangirnagar University. I have developed a series of commercially successful apps on Android. Moreover, 10+ of my Apps are live at Google play store. .
Thank You

UVa Solution 272: TeX Quotes

#include<cstdio>
int main()
{
char ch;
long int count=0;
while(scanf("%c",&ch)==1)
{
    if(ch=='"')
    {
        count++;
        if(count%2==1)
        printf("``");
        else if(count%2==0)
        printf("''");
    }
    else printf("%c",ch);
}
}