Author Topic: Now for something truly useful: babyShark.bas  (Read 4794 times)

0 Members and 1 Guest are viewing this topic.

FellippeHeitor

  • Guest
Now for something truly useful: babyShark.bas
« on: February 13, 2019, 04:41:44 pm »
Perks of having a baby:

Code: QB64: [Select]
  1. DIM family$(1 TO 5)
  2. family$(1) = "Baby"
  3. family$(2) = "Mommy"
  4. family$(3) = "Daddy"
  5. family$(4) = "Grandma"
  6. family$(5) = "Grandpa"
  7.  
  8. FOR i = 1 TO 5
  9.     FOR j = 1 TO 3
  10.         PRINT family$(i); " shark, ";
  11.         FOR k = 1 TO 6
  12.             PRINT "doo ";
  13.         NEXT
  14.         PRINT
  15.     NEXT
  16.     PRINT family$(i); " shark!"
  17.     PRINT

If you have no idea what that is:
« Last Edit: February 13, 2019, 04:43:10 pm by FellippeHeitor »

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
    • View Profile
Re: Now for something truly useful: babyShark.bas
« Reply #1 on: February 13, 2019, 05:06:19 pm »
  • Best Answer
  • For loops? Didn't you want DO-DO Loops?

    Hey, did you have another bambino? If so, congrats! If it's just the "old" baby, don't worry, they grow out of the diaper stage eventually. The grey hairs never turn back, though.

    Pete
    Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/

    FellippeHeitor

    • Guest
    Re: Now for something truly useful: babyShark.bas
    « Reply #2 on: February 13, 2019, 05:08:17 pm »
  • Best Answer
  • Still my firstborn.

    I wish I had a head full of gray hair, but I'm on to the bald route.
    « Last Edit: February 13, 2019, 05:09:28 pm by FellippeHeitor »