Last active
March 3, 2026 05:16
-
-
Save mit41301/ff457a1ef9843ac9f7a9eb89966b63a3 to your computer and use it in GitHub Desktop.
SUM of 4 numbers in BASIC-52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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