fork download
  1. proc factorial fact {
  2.  
  3. if {$fact <= 1} {
  4.  
  5. return 1
  6. }
  7. expr $fact * [factorial [expr $fact-1]]
  8.  
  9. }
  10.  
Success #stdin #stdout 0.01s 5312KB
stdin
Standard input is empty
stdout
Standard output is empty