Daily Challenge #82

Hello everyone, this is the first Daily Challenge I made, so too easy for everyone, This daily challenge is about Average Number. Today you have to make a procedure with a random amount of inputs, which will get the average number of all numbers given in the inputs.

You will make a value returning procedure. Your procedure should work for every amount of input numbers, not only for the example inputs given here. The procedure will have the random number of inputs. Procedure values will be in list
Example:-
blocks (2)
NOTE: No extensions will be allowed, only inbuilt components are allowed
Anyone who does this in smallest amount of blocks, his post will be the solution of this challenge
I thing you liked this daily challenge

4 Likes

You should’ve also include a input which tells how many inputs there are.
NOTE: this number can be the amount with this inout itself or without.

Can you provide an example input & output? :slight_smile:

That’s what I said to you earlier, @rizu! :smile:

This is not necessary i think. You can easily get this number with a block inside the procedure

Well, I don’t think so. How would you do it if you didn’t know? :thinking:

length of list?

1 Like

Yes, but if the inputs are not in a list? :nerd_face:

But…

1 Like

I agree :+1:

Use length of list block to get number of inputs/items.
@Mateja posted it before me :sweat_smile:

P.S. we all know it’s quite easy but lets see who solves it using least blocks :wink:

1 Like

It says that it must be a list

1 Like

Ok, let’s leave it here. I first thought the inputs were not in a list, so that’s why I was asking. :innocent:

Then, remove text and place a new image! ok if everyone says that

Please. I’m already done, just want to make sure I actually understood the challenge right

Off-topic

:exploding_head: :exploding_head: :exploding_head:

Well, I am like :sleeping: :sleeping: :sleeping:

Summary

blocks (48)

foruteene blocsk

I did it this way. It is also a list.

image

image

Solution

blocks (42)

Oh no @Mateja was faster :sob:

image

13 blocks me too :slightly_smiling_face:

image
?

Sorry, this is a mistake.
EDITED.