10 input N 20 factorial=1 30 if N<=1 goto 100 40 factorial=factorial*N 50 N=N-1 60 goto 30 100 print factorial 110 end