팩토리알 베이직 코드

imported>Zolaist님의 2011년 11월 2일 (수) 14:29 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
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