9
\$\begingroup\$

Before you close vote:

Yes, Scratch questions are okay.

Link to project on Scratch

For the hundredth question, I'd thought I'd spruce it up a bit and post something new.

So, first make three variables named i, iterations and string:

variables

And a list named ListOfFBs (FBs = FizzBuzzes)

list

Here is my main code:

main code

Which produces an output like:

output

\$\endgroup\$
  • 1
    \$\begingroup\$ OMG 100 fizzbuzz questions! Who will be the first to get the tag badge? \$\endgroup\$ – Mathieu Guindon Dec 3 '15 at 14:51
7
\$\begingroup\$

Instead of setting iterations programmatically to 30, I recommend making it a slider so that it can serve as your input.

To clear ListOfFBs, you can just do delete all of LisfOfFBs instead of

set i to 1
repeat (length of ListOfFBs):
    delete i of ListOfFBs

I think we can do away with i and string. i is just length of ListOfFBs. string is just item last of ListOfFBs.

Suggested solution

Variable: Iterations and List: ListOfFBs

Program

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.