Skip to content

Instantly share code, notes, and snippets.

@yttrian
Last active January 9, 2018 17:34
Show Gist options
  • Save yttrian/940406c964cefbae11c71b34268ac125 to your computer and use it in GitHub Desktop.
Save yttrian/940406c964cefbae11c71b34268ac125 to your computer and use it in GitHub Desktop.
Prints out Pascal 's Triangle on a TI-89
:pastri(x)
:Prgm
:ClrIO
:For y,0,x
:Disp nCr(x,y)
:If mod(y+1,6)=0 and not (x=y) Then
:Pause
:EndIf
:EndFor
:DelVar x,y
:Pause
:ClrIO
:DispHome
:EndPrgm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment