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
4 Réponses
+ 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.
+ 1
// Add it .. at the end of the code in JS
document.write(pyr2.replaceAll("\n","<br>").replaceAll(" "," "));
document.write(pyr.replaceAll("\n","<br>").replaceAll(" "," "));
https://code.sololearn.com/WyGParN5E97D
0
# Abdul-Haleem ✓✓ [{INACTIVE}]
display your output in a <pre> element.
no need to modify empty spaces
https://code.sololearn.com/Wz0ONtL3fNbi/?ref=app