Найти максимум и минимум среди трех чисел
Решила Яна Баютина (6 класс, 2015 год)
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="variables_set" id="908" x="-187" y="-112">
<field name="VAR">А</field>
<value name="VALUE">
<block type="text_prompt_ext" id="909">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text" id="910">
<field name="TEXT">введите первое число</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="911">
<field name="VAR">Б</field>
<value name="VALUE">
<block type="text_prompt_ext" id="912">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text" id="913">
<field name="TEXT">введите второе число</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set" id="914">
<field name="VAR">В</field>
<value name="VALUE">
<block type="text_prompt_ext" id="915">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text" id="916">
<field name="TEXT">введите третье число</field>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if" id="917">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="918">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="919">
<field name="VAR">Б</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="920">
<field name="VAR">А</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="921">
<field name="VAR">максимум</field>
<value name="VALUE">
<block type="variables_get" id="922">
<field name="VAR">Б</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="923">
<field name="VAR">максимум</field>
<value name="VALUE">
<block type="variables_get" id="924">
<field name="VAR">А</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="925">
<value name="IF0">
<block type="logic_compare" id="926">
<field name="OP">GT</field>
<value name="A">
<block type="variables_get" id="927">
<field name="VAR">В</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="928">
<field name="VAR">максимум</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="929">
<field name="VAR">максимум</field>
<value name="VALUE">
<block type="variables_get" id="930">
<field name="VAR">В</field>
</block>
</value>
</block>
</statement>
<next>
<block type="text_print" id="931">
<value name="TEXT">
<block type="variables_get" id="932">
<field name="VAR">максимум</field>
</block>
</value>
<next>
<block type="controls_if" id="933">
<mutation else="1"></mutation>
<value name="IF0">
<block type="logic_compare" id="934">
<field name="OP">LT</field>
<value name="A">
<block type="variables_get" id="935">
<field name="VAR">Б</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="936">
<field name="VAR">А</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="937">
<field name="VAR">минимум</field>
<value name="VALUE">
<block type="variables_get" id="938">
<field name="VAR">Б</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="variables_set" id="939">
<field name="VAR">минимум</field>
<value name="VALUE">
<block type="variables_get" id="940">
<field name="VAR">А</field>
</block>
</value>
</block>
</statement>
<next>
<block type="controls_if" id="941">
<value name="IF0">
<block type="logic_compare" id="942">
<field name="OP">LT</field>
<value name="A">
<block type="variables_get" id="943">
<field name="VAR">В</field>
</block>
</value>
<value name="B">
<block type="variables_get" id="944">
<field name="VAR">минимум</field>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="variables_set" id="945">
<field name="VAR">минимум</field>
<value name="VALUE">
<block type="variables_get" id="946">
<field name="VAR">В</field>
</block>
</value>
</block>
</statement>
<next>
<block type="text_print" id="947">
<value name="TEXT">
<block type="variables_get" id="948">
<field name="VAR">минимум</field>
</block>
</value>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>