Talk:BASIC Programming/Beginning BASIC/PRINT, CLS, and END

A simple program demonstrating the commands
10 CLS 20 LET X=5 30 LET Y=10 40 PRINT X 50 PRINT Y 60 END

A modification to program on the actual page that is less likely to confuse anyone
10 CLS 20 PRINT "Helloooooooooooooo, world!" 30 PRINT "I'm making the sample program clear and understandable." 40 PRINT "This text is being printed via the PRINT command." 50 PRINT "On the next line, I'll use CLS, which will clear everything I just printed, so you won't even see the preceding text." 55 PRINT "Also, you can't give CLS a line to PRINT; it won't actually do anything" 60 CLS "These words actually do nothing; they do not PRINT or anything." 70 PRINT "Finally, on line 80, I'll use END, which will keep me from reaching line 90." 80 END "Like CLS, putting a string here does nothing; it does not PRINT or anything." 90 PRINT "this is not really my answer."

209.33.12.156 (discuss) 15:15, 10 October 2018 (UTC)

COMPUTER
10 LET Y=5 20 LET X=6 30 PRINT Y 40 PRINT X 50 END

COMPUTER
10 LET Y=5 20 LET X=6 30 PRINT Y 40 PRINT X 50 END