Algorithm of 272 - TEX Quotes

Solution steps:

This problem is a simple problem just follow the stapes
1. get a character and check the character is " or not
2. if the character is " then check is it first or second time
3. if first time then replace " by `` and
4. if second time then replace it by '' and print this character
   (N.B: if get second time then next " is first time)
5. otherwise print the character without any change
image

No comments:

Post a Comment

Write your comment - Share Knowledge and Experience