Jump to content

Generic swap: Difference between revisions

Generic swap in Tiny BASIC
(Generic swap in Yabasic)
(Generic swap in Tiny BASIC)
Line 3,151:
y
1</lang>
 
=={{Header|Tiny BASIC}}==
<lang Tiny BASIC> LET a = 11
LET b = 22
PRINT a, " ", b
GOSUB 100
PRINT a, " ", b
END
100 REM swap(a, b)
LET t = a
LET a = b
LET b = t
RETURN</lang>
 
=={{header|Trith}}==
2,139

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.