Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Functioncreate2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@
using namespace std;
string insert_space(string text)
{
// write the function code here
string temp;
for(int i=0; i<text.size(); i++){
if(text[i] >= 'A' && text[i]<='Z' && i!=0){
temp = temp + " " + text[i];
}
else{
temp = temp + text[i];
}
}
text = temp;
return text;
}

int main()
Expand Down