Skip to content

Instantly share code, notes, and snippets.

@mit41301
Last active March 3, 2026 05:16
Show Gist options
  • Select an option

  • Save mit41301/ff457a1ef9843ac9f7a9eb89966b63a3 to your computer and use it in GitHub Desktop.

Select an option

Save mit41301/ff457a1ef9843ac9f7a9eb89966b63a3 to your computer and use it in GitHub Desktop.
SUM of 4 numbers in BASIC-52
10 REM SUM CALCULATION
20 READ A,B,C,D
30 SUM=A+B+C+D
40 PRINT " SUM OF 15,30,20 AND 325 I = ",SUM
50 DATA 15,30,20,325
60 END
70 REM usage of READ and DATA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment