factorial 219 B

1234567891011121314
  1. LABEL START
  2. PRINT "Enter a number to compute its factorial:"
  3. INPUT n
  4. PRINT ""
  5. LET result = 1
  6. WHILE n > 1 REPEAT
  7. LET result = result * n
  8. LET n = n - 1
  9. ENDWHILE
  10. PRINT "The factorial is:"
  11. PRINT result
  12. GOTO START