#include <iostream>
#include <string.h>
using namespace std;
// Function to remove vowels from a string
string RemoveSpaces(string str)
{
for (int i = 0; i < str.length(); i++)
{
if(str[i] == ' ')
str[i] = '\0';
}
return str;
}
int main()
{
string str = "take u forward";
cout <<"String after removing the spaces \n" <<RemoveSpaces(str) << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Ci8vIEZ1bmN0aW9uIHRvIHJlbW92ZSB2b3dlbHMgZnJvbSBhIHN0cmluZwpzdHJpbmcgUmVtb3ZlU3BhY2VzKHN0cmluZyBzdHIpCnsKICBmb3IgKGludCBpID0gMDsgaSA8IHN0ci5sZW5ndGgoKTsgaSsrKQogIHsKICAgICAgaWYoc3RyW2ldID09ICcgJykKICAgICAgICAgc3RyW2ldID0gJ1wwJzsKICAKICB9CiAgcmV0dXJuIHN0cjsKfQppbnQgbWFpbigpCnsKICBzdHJpbmcgc3RyID0gInRha2UgdSBmb3J3YXJkIjsKICBjb3V0IDw8IlN0cmluZyBhZnRlciByZW1vdmluZyB0aGUgc3BhY2VzIFxuIiA8PFJlbW92ZVNwYWNlcyhzdHIpIDw8IGVuZGw7CiAgcmV0dXJuIDA7Cn0=