【问题标题】:How do the "max" and "min" blocks in the MIT App Inventor work?MIT App Inventor 中的“max”和“min”块是如何工作的?
【发布时间】:2013-09-20 23:57:50
【问题描述】:

我正在尝试在 MIT App Inventor 中创建一个应用程序,该应用程序能够发现用户给定的集合中的最小和最大数字。

我看到 App Inventor 有可以做到这一点的块,恰当地称为“max”和“min”,但我不知道如何使用它们。他们在一组数字中找到“最大”和“最小”,但我实际上可以将什么连接到这些块?

【问题讨论】:

    标签: android app-inventor


    【解决方案1】:

    另见reference docu

    min
    Returns the smallest of a given set of numbers.
    
    max
    Returns the largest of a given set of numbers.
    

    例子

    另请参阅Colored Dots tutorial限制范围 过程以获得更复杂的示例

    【讨论】:

    • 这很好地解释了这些块。太感谢了! :)
    猜你喜欢
    • 2023-03-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-21
    • 1970-01-01
    • 1970-01-01
    • 2017-04-11
    相关资源
    最近更新 更多