Daily Challenge #18

This one is from @Italo

Type a number and generate the multiplication table for it up to 10

This should be the result

Italo did it in 18 blocks.

13 Likes

And 2 components.

6 Likes

The variable $item is not bound in the current contex w it means

i have created it, with 2 components, but blocks are little bigger than 18

blocks%20(24)

blocks%20(25)

5 Likes

Ok, my first participation in any challenge.
Here’s what I’ve tried:
blocks%20(19)

But in 19 blocks…

7 Likes

Here :point_down: is my version (without checking the empty string condition) 16 blocks




And below is the another version with 20 blocks (those extra blocks for checking the empty string condition)




I wonder if @Italo’s 18 blocks check for empty string or not :thinking: . In case they do, then more work is needed to be done on my side, I guess :sweat_smile:

5 Likes

Blockly is a very good visual programming language to reduce the code as much as possible.

15 blocks for now. :wink:

Don’t worry I won’t use WebViewer again to make this challenge in 3 blocks :crazy_face:

11 Likes

I would like to see… For an idea!

2 Likes

best:heart::heart::heart:

Webview + javascript

3 Likes

Of course! :grin:

2 Likes

make it :bomb:

1 Like

No, in my version there’s no validation at all. Good job!

2 Likes

Well, technically, it would be a valid solution, but we are trying to make people learn to code with blocks, so it would be preferred to have a full blocks solution.

1 Like

I know. I was answering how can you do ir with webviewer

But post it anyways! It will help us learn something, for sure.

2 Likes

That’s almost exactly as I made it, but try without using any variables.

1 Like

Almost! Don’t make it a procedure, and you will reduce the blocks.

1 Like

Reading your Solution i see the output Will be love this… (For example user input =7)

7
7x0=07
7x1=77
7x2=147
7x3=217

I just readed from my phone, didn’t try it. Correct me ir I’m wrong

Nice one! But the legend “Tap here to start” is missing and people will not know what to touch after the first try. Want to try a solution for that?