Today’s exercise was Pascal’s triangle. This one was also marked medium but if it hadn’t been for arrays being uncooperative it would have taken half no time. The description promised a Sierpinski triangle if you colored odd and even numbers differently.  I added it in after submitting my solution, what do you think?

                       █
                       ██
                      █░█
                      ████
                     █░░░█
                     ██░░██
                    █░█░█░█
                    ████████
                   █░░░░░░░█
                   ██░░░░░░██
                  █░█░░░░░█░█
                  ████░░░░████
                 █░░░█░░░█░░░█
                 ██░░██░░██░░██
                █░█░█░█░█░█░█░█
                ████████████████
               █░░░░░░░░░░░░░░░█
               ██░░░░░░░░░░░░░░██
              █░█░░░░░░░░░░░░░█░█
              ████░░░░░░░░░░░░████
             █░░░█░░░░░░░░░░░█░░░█
             ██░░██░░░░░░░░░░██░░██
            █░█░█░█░░░░░░░░░█░█░█░█
            ████████░░░░░░░░████████
           █░░░░░░░█░░░░░░░█░░░░░░░█
           ██░░░░░░██░░░░░░██░░░░░░██
          █░█░░░░░█░█░░░░░█░█░░░░░█░█
          ████░░░░████░░░░████░░░░████
         █░░░█░░░█░░░█░░░█░░░█░░░█░░░█
         ██░░██░░██░░██░░██░░██░░██░░██
        █░█░█░█░█░█░█░█░█░█░█░█░█░█░█░█
        ████████████████████████████████
       █░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
       ██░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░██
      █░█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█░█
      ████░░░░░░░░░░░░░░░░░░░░░░░░░░░░████
     █░░░█░░░░░░░░░░░░░░░░░░░░░░░░░░░█░░░█
     ██░░██░░░░░░░░░░░░░░░░░░░░░░░░░░██░░██
    █░█░█░█░░░░░░░░░░░░░░░░░░░░░░░░░█░█░█░█
    ████████░░░░░░░░░░░░░░░░░░░░░░░░████████