What's wrong? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

What's wrong?

I ran it on sololearn website (Laptop) it is okay but getting to the app it looks awkward. Any Help? https://code.sololearn.com/WZT3d1u9WZHB/?ref=app

11th May 2022, 9:45 PM
Abdul-Haleem āœ“āœ“
Abdul-Haleem āœ“āœ“ - avatar
4 Respostas
+ 2
Bob_Li SoloProg thanks for the tips
12th May 2022, 9:57 PM
Abdul-Haleem āœ“āœ“
Abdul-Haleem āœ“āœ“ - avatar
+ 1
The distortion is likely due the console using a proportional font. The characters are not all the same width. The space character is much narrower than #. There is nothing wrong with your program.
11th May 2022, 10:50 PM
Brian
Brian - avatar
+ 1
// Add it .. at the end of the code in JS document.write(pyr2.replaceAll("\n","<br>").replaceAll(" ","&ensp;")); document.write(pyr.replaceAll("\n","<br>").replaceAll(" ","&ensp;")); https://code.sololearn.com/WyGParN5E97D
12th May 2022, 12:07 AM
SoloProg
SoloProg - avatar
0
# Abdul-Haleem āœ“āœ“ [{INACTIVE}] display your output in a <pre> element. no need to modify empty spaces https://code.sololearn.com/Wz0ONtL3fNbi/?ref=app
12th May 2022, 8:01 AM
Bob_Li
Bob_Li - avatar