Hi Fellippe,
Here is what I watched last night:
faster by exactly 2 times: writes whole seconds
I didn't save what I had earlier, but I think this was it....
- DavCode: QB64: [Select]
Edit: i guess you could do a big one line, if f = 1 then else if f = 2 then, etc up to 100. But, id really have to want that job bad...
-
How about doing it with the fewest possible characters? Lines are too ambiguous now.
I tried a neater comma between and oddly it takes a tad longer, also am not seeing any time difference with
$Checking:Off in fact one run was faster without it.
Why is that so fast?
Update: Ah ha! No decisions!
I cheated... Look close, and you'll see my NINJA trick!! If you can't figure it out by morning, I'll post it for you, but I know you like a chance to study and figure things out for yourself first. ;)
[
n i i+1
i i > 100
x
f
i i%5 = 0 and i%3 = 0
, FizzBuzz
e
i i%3 = 0
, Fizz
e
i i%5 = 0
, Buzz
e
, i
f
f
f
]
126 bytes and looks like about 19 lines!Ohhhh you only printed the final screen LOL!
What about SB itself? Should we throw that up into the Samples section? We have a few interpreters there gathering dust.
I have to get busy with that section again...
Saw a one line ... version. That's probably not possible in basic ...- Dav