0

How I can solve it ???

if user input 9. output is: 191919191 282828282 373737373 464646464 555555555 646464646 737373737 828282828 919191919

7th Apr 2018, 10:13 PM
Malak_99
Malak_99 - avatar
5 Antworten
+ 4
I made an assumption of how your pattern works and made this program. https://code.sololearn.com/cF2hdXeyBH6a
8th Apr 2018, 1:29 AM
John Wells
John Wells - avatar
+ 2
Do you have a second example say, if the user input 5? Without that or a description of the problem giving a solution is difficult.
7th Apr 2018, 10:46 PM
John Wells
John Wells - avatar
+ 2
Robert Brown Farley (brofarops) it might be, but not in Kotlin. He will still have to figure out how to convert it. Since he has started C++, I'm guessing that language and I was going to give the algorithm.
8th Apr 2018, 2:08 AM
John Wells
John Wells - avatar
+ 1
I hope this wasn't their homework John. It looks like an exercise -
8th Apr 2018, 2:05 AM
BroFar
BroFar - avatar
+ 1
I wouldn't blame perse even if you did do his homework... I think we sometimes forget that many here are youthful coders - The question here would be where is his/her code and how can we best assist him ( or ) her without actually doing their homework...
8th Apr 2018, 2:13 AM
BroFar
BroFar - avatar