How to draw Pascal's Triangle with Pascal code? lazarus / 8-Other ---------------------------------------------------------------------- anbadaothcsts@gmail.com · 2020-05-04 12:48 When you compile the code, it will went like this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Row(s): 4 ----------------1 11 2 11 3 3 11 4 6 4 1 where the 4 is typed by keyboard. i struggled to do this for weeks though ---------------------------------------------------------------------- marcov · 2020-05-04 13:02 Insert appropriate spaces? ---------------------------------------------------------------------- Bart · 2020-05-04 13:08 If you go N levels deep, then start the first line with N-1 spaces, separate all values with one space. 4 Levels: Code: [Select]   1 1    //starts with 3 spaces   1 2 1   //starts with 2 spaces  1 3 3 1  //starts with 1 space 1 4 6 4 1 //starts with 0 spaces Bart