Created
March 20, 2019 15:08
-
-
Save gavr123456789/47376ae6cece8a0fe0ee1353ca77d714 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string task(string str){ | |
var result = ""; | |
unichar c; | |
for (int i = 0; str.get_next_char (ref i, out c);) { | |
if (c ==' ')result+="%20"; | |
else result+=c.to_string(); | |
} | |
return result; | |
} | |
void main(){ | |
print(@" $(task("rar ror rer"))"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment