Question

I am trying to create an app in the MIT App Inventor that is able to discover the smallest and largest number within a set given by the user.

I saw that the App Inventor has blocks that do just this, aptly called "max" and "min", but I cannot figure out how to use them. They find the "largest" and "smallest" in a set of numbers, but what could I actually connect to these blocks?

Was it helpful?

Solution

see also the reference docu

min
Returns the smallest of a given set of numbers.

max
Returns the largest of a given set of numbers.

example

enter image description here

see also the Colored Dots tutorial and the limit range procedure for a more complex example

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top