Skip to content

Commit 3cbfd65

Browse files
authored
Merge pull request virejdasani#43 from LordUbuntu/patch-1
Add example: truth machine
2 parents 780b6d4 + b126354 commit 3cbfd65

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

exwamples/twuth.pyowo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Truth Machine
2+
# If the input is true (a 1), then print true forever
3+
# If the input is false (a 0), then print false once
4+
pwease twuth = inpwt_int()
5+
IF twuth THWEN WHILE twue THWEN pwint(twue)
6+
IF NOT twuth THWEN pwint(fawse)

0 commit comments

Comments
 (0)