+ 1

Capitalized

Write a program that receives a string as an input, and the first letter of the words will be capitalized if the letter is small

31st Dec 2017, 12:22 PM
mohamadamin baniasadi
mohamadamin baniasadi - avatar
4 Answers
+ 4
There was at least two challenges I knew with this topic, if this was a challenge, although you didn't specifically say so, then it would be the third, not that it's a crime, it's perfectly fine though : ) Here's my code in C++ for such purpose, to use it, enter the string and a mode setting number, for this one, mode (1) is used. So in Code Playground it should be inputted like: string to process 1 https://code.sololearn.com/cM3qp41znqpZ/?ref=app
31st Dec 2017, 12:34 PM
Ipang
+ 1
s = input() print(s.title())
31st Dec 2017, 1:25 PM
SebastiĂĄn Zapata
SebastiĂĄn Zapata - avatar
+ 1
@sebastian zapata thank you😊
31st Dec 2017, 2:20 PM
mohamadamin baniasadi
mohamadamin baniasadi - avatar
0
@ipang thank you😊
31st Dec 2017, 2:22 PM
mohamadamin baniasadi
mohamadamin baniasadi - avatar