11-18-2022, 12:22 AM
For swap you switch two variable values.
Swapping letters in a word, interesting.
t$ = mid$(a$, 5, 1)
mid$(a$, 5, 1) = mid$(a$, 3, 1)
mid$(a$, 3, 1) = t$
Swapping letters in a word, interesting.
t$ = mid$(a$, 5, 1)
mid$(a$, 5, 1) = mid$(a$, 3, 1)
mid$(a$, 3, 1) = t$
b = b + ...