Why isn't the dash amount accurate? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why isn't the dash amount accurate?

In the function displayTable(), if outputs a dash below the player name (forming a mini table). It should display as many dashes as the player's name size. But inputing a very short name and very long name doesn't work, it's off by a couple a spaces. How can I fix this. To see it, input "Dan" or any long gibberish. https://code.sololearn.com/cQOygRE34q4o/?ref=app

7th Aug 2020, 9:24 AM
Clueless Coder
Clueless Coder - avatar
0 Answers