문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top