dimanche 24 décembre 2017

How can I double a character in a string when its a small letter (a-z) and triple it when its a big letter (A-Z)?

I want to to it like I described above. For example: input: abc output: aabbcc input: ABC output: AAABBBCCC

Thanks

Aucun commentaire:

Enregistrer un commentaire