Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- char s[100];
- int main() {
- gets(s);
- int between = 0;
- for (int i = 0; s[i]; i++) {
- if (s[i] == '<') {
- between = 1;
- } else if (s[i] == '>') {
- between = 0;
- } else if (between && s[i] != ' ') {
- s[i] -= 32;
- }
- }
- puts(s);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement