3 ms·
One of my first program was something like: - What is your name? - <name> is dumb, haha
by 29athrowaway 5y ago
One of my first program was something like:
- What is your name?
- <name> is dumb, haha
- drewzero1 5y agoMe too. One time I messed with my friend by adding a conditional to complement every name except his. 10 PRINT "WHAT IS YOUR NAME"; 20 INPUT NAME$ 30 IF NAME$ = "BILL" THEN 40 PRINT NAME$+" SOUNDS LIKE A NAME FOR A DORK!" 50 ELSE 60 PRINT NAME$+" SOUNDS LIKE A GREAT NAME!" 70 END IF I also tried to prank people with a program I wrote that mimicked a BSOD, but I couldn't get anyone to fall for it. PS- No hard feelings between me and NAME$, one of the few high school friends I still spend time with. He still remembers the program and laughs.
- 29athrowaway 5y agoFormatted version (HN supports code sections by indenting 4 spaces): 10 PRINT "WHAT IS YOUR NAME"; 20 INPUT NAME$ 30 IF NAME$ = "BILL" THEN 40 PRINT NAME$+" SOUNDS LIKE A NAME FOR A DORK!" 50 ELSE 60 PRINT NAME$+" SOUNDS LIKE A GREAT NAME!" 70 END IF
- drewzero1 5y agoOoh, didn't know about the newlines not printing as typed. Thanks for the tip!