Question: A text is given. Write a program that modifies the casing of letters to uppercase at all places in the text surrounded by and tags.
A text is given. Write a program that modifies the casing of letters to uppercase at all places in the text surrounded by and tags. Tags cannot be nested.
Example:
We are living in a yellow submarine. We don't have anything else. |
Result:
We are living in a YELLOW SUBMARINE. We don't have ANYTHING else. |
Step by Step Solution
3.43 Rating (143 Votes )
There are 3 Steps involved in it
You can achieve this by iterating through the text and toggling a flag when encountering upcase an... View full answer
Get step-by-step solutions from verified subject matter experts
