quality posts: 53
neuropsychosocial wrote:BASIC was the first and only computer language I learned to code! I really loved it, but my parents discouraged it because there was no future in writing computer code. Riiiight.
Odysseyroc, this is wonderful. I particularly love that the subtle reference to the Blue Screen of Death! Nice choice of color.
My long-lost brother! We did have an Apple II+ clone, but I didn't receive any education on programming or much encouragement when I was a kid, had to learn BASIC by reading the code. I learned a few more languages, though. Being an engineer, programming is required, but not my focus. I get to claim in my resume BASIC programming since 1981. :-)
Thanks to up-to-the-minute tracking, I don't track my package so much as stalk it.
quality posts: 27
10 PRINT "Would you like a bag of crap?"
20 INPUT "Y or N>", answer%
21 IF answer% = Y% THEN GOTO 30
22 IF answer% = N% THEN GOTO 10
30 PRINT "HTTP 500 - Internal server error, hold on a second..."
900+ woots! - Talk to the Square or don't
quality posts: 6
psm321 wrote:You're misremembering. Pretty much every BASIC (including the Apple that you mention) did/does automatically print newlines and you have to go to special measures to suppress them, usually a semicolon at the end of the line.
Oh man, you're right.. I tested it and I had it backwards. Haven't done anything with any BASIC since the late '70s/early 80's so I'm not too surprised :P
quality posts: 6
Here's a BASH version in case anyone is interested:
read -p "Choose a number between 1 and 10> " GUESS
if [ $GUESS -lt $NUM ]; then
echo -e "Too low.. try again.\n"
elif [ $GUESS -gt $NUM ]; then
echo -e "Too high.. try again.\n"
elif [ $GUESS -eq $NUM ]; then
echo -e "You guessed it!\n"