0
The Spy Life
I have attempted the spy life xode coach problem and my code so far reverses the input and removes non-alphabetical characters but prints a string which hasn't yet been spaced before the capital letters. Somebody please help me https://code.sololearn.com/c51L0o882482/?ref=app
3 Respuestas
+ 13
You can add another conditon using logical or operator for spaces like this:
if c.isalpha() or c==' '
+ 5
You haven't said what to do if a character is a space. Try adding or c == " " after if c.isalpha()
0
Sir please make on using namespace keyword in c++ any?