reset password
Author Message
jgarc629
Posts: 76
Posted 21:37 Mar 11, 2017 |

So I am getting the correct output I want (the 10 digit phone number), but I am also getting the unicode value from the original input CODEISLIFE which is an extra 20 digits. As a result, I would get 30 digits in my output as a string. Is there anyway I can omit those 20 extra digits from the string? 

Last edited by jgarc629 at 21:38 Mar 11, 2017.
kknaur
Posts: 540
Posted 12:16 Mar 12, 2017 |

You should not be getting any extra digits.  If you are your logic is not correct.

jgarc629
Posts: 76
Posted 16:00 Mar 12, 2017 |

I re-did the problem using char instead of unicode and fixed it, thanks!

kknaur
Posts: 540
Posted 16:18 Mar 12, 2017 |

Good work!