Тип треугольника
Решение Ольги Кирьяновой (6 класс)
<xml xmlns="http://www.w3.org/1999/xhtml">
<block type="variables_set" x="-287" y="-337">
<field name="VAR">Первый угол</field>
<value name="VALUE">
<block type="text_prompt_ext">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text">
<field name="TEXT">Введите первый угол треугольника.</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set">
<field name="VAR">Второй угол</field>
<value name="VALUE">
<block type="text_prompt_ext">
<mutation type="NUMBER"></mutation>
<field name="TYPE">NUMBER</field>
<value name="TEXT">
<block type="text">
<field name="TEXT">Введите второй угол треугольника.</field>
</block>
</value>
</block>
</value>
<next>
<block type="variables_set">
<field name="VAR">Третий угол</field>
<value name="VALUE">
<block type="math_arithmetic">
<field name="OP">MINUS</field>
<value name="A">
<block type="math_number">
<field name="NUM">180</field>
</block>
</value>
<value name="B">
<block type="math_arithmetic">
<field name="OP">ADD</field>
<value name="A">
<block type="variables_get">
<field name="VAR">Первый угол</field>
</block>
</value>
<value name="B">
<block type="variables_get">
<field name="VAR">Второй угол</field>
</block>
</value>
</block>
</value>
</block>
</value>
<next>
<block type="controls_if">
<mutation elseif="2" else="1"></mutation>
<value name="IF0">
<block type="logic_operation">
<field name="OP">AND</field>
<value name="A">
<block type="logic_compare">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get">
<field name="VAR">Первый угол</field>
</block>
</value>
<value name="B">
<block type="variables_get">
<field name="VAR">Второй угол</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get">
<field name="VAR">Второй угол</field>
</block>
</value>
<value name="B">
<block type="variables_get">
<field name="VAR">Третий угол</field>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO0">
<block type="text_print">
<value name="TEXT">
<block type="text">
<field name="TEXT">Ваш треугольник равносторонний.</field>
</block>
</value>
</block>
</statement>
<value name="IF1">
<block type="logic_operation">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get">
<field name="VAR">Первый угол</field>
</block>
</value>
<value name="B">
<block type="variables_get">
<field name="VAR">Второй угол</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get">
<field name="VAR">Второй угол</field>
</block>
</value>
<value name="B">
<block type="variables_get">
<field name="VAR">Третий угол</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get">
<field name="VAR">Первый угол</field>
</block>
</value>
<value name="B">
<block type="variables_get">
<field name="VAR">Третий угол</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO1">
<block type="text_print">
<value name="TEXT">
<block type="text">
<field name="TEXT">Ваш треугольник равнобедренный.</field>
</block>
</value>
</block>
</statement>
<value name="IF2">
<block type="logic_operation">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get">
<field name="VAR">Первый угол</field>
</block>
</value>
<value name="B">
<block type="math_number">
<field name="NUM">90</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_operation">
<field name="OP">OR</field>
<value name="A">
<block type="logic_compare">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get">
<field name="VAR">Второй угол</field>
</block>
</value>
<value name="B">
<block type="math_number">
<field name="NUM">90</field>
</block>
</value>
</block>
</value>
<value name="B">
<block type="logic_compare">
<field name="OP">EQ</field>
<value name="A">
<block type="variables_get">
<field name="VAR">Третий угол</field>
</block>
</value>
<value name="B">
<block type="math_number">
<field name="NUM">90</field>
</block>
</value>
</block>
</value>
</block>
</value>
</block>
</value>
<statement name="DO2">
<block type="text_print">
<value name="TEXT">
<block type="text">
<field name="TEXT">Ваш треугольник прямоугольный.</field>
</block>
</value>
</block>
</statement>
<statement name="ELSE">
<block type="text_print">
<value name="TEXT">
<block type="text">
<field name="TEXT">Ваш треугольник ничем не примечательный, а жизнь тлен.</field>
</block>
</value>
</block>
</statement>
</block>
</next>
</block>
</next>
</block>
</next>
</block>
</xml>