Ctrl+P again to print, arrows/tab to navigate results, enter to confirm

    Please in order to save solutions and appear on the leaderboards. New here? Check out the Tutorial hole.

    Details

    The trinomial triangle is a triangular array of numbers similar to Pascal's triangle. The top row consists of a single 1, and each subsequent row contains 2 more numbers than the last. Each number is the sum of the 3 numbers above it, i.e.

    1 2 3
      6
    

    Print the first 20 rows of the trinomial triangle.

    Variants: Pascal’s Triangle

    External links: OEIS A027907, Wikipedia

    0 bytes, 0 chars
    Restore solution
    Compiled from AT&T syntax to x86-64 Linux. Use syscalls to write output.
    ctrl + enter or

    Delete Solution

    Are you sure you want to delete your solution(s) for Trinomial Triangle?

    If you have separate bytes and chars solutions then both will be deleted.

    This is irreversible, please backup any code you care about.

    Type I understand and press confirm to continue.