RetroBASIC

Basicprogramming(.org) => SmallBASIC => Topic started by: chrisws on October 18, 2019, 11:58:42 AM

Title: Funny little program
Post by: chrisws on October 18, 2019, 11:58:42 AM
I wasn't sure whether to share this here, but since it's all being deleted in a couple of weeks... enjoy!

s = "B trump"
for i = 0 to len(s) - 1
  n += asc(mid(s, i + 1, 1))
next i
print n