Skip to content

Commit

Permalink
Fixed factorial.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickolasbradham committed Dec 8, 2022
1 parent 797e460 commit 184c0f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Examples/recursiveFactorial.uwu
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
vwar gwobaw one 1
vwar gwobaw two 2
vwar gwobaw ret 0

vwar wocaw prompt Enter n:
Expand All @@ -13,8 +12,8 @@ pwint ret
gowtu end

!fact
wumpif gw8r arg two recurse
vwar gwobaw ret 2
wumpif gw8r arg one recurse
vwar gwobaw ret 1
wetwurn
!recurse
vwar wocaw n 0
Expand Down

0 comments on commit 184c0f3

Please sign in to comment.