Separately, the options work. I can not understand how to file them into a single mechanism. The task is as follows - 1. Create an algorithm for deriving the average of the value of three numbers in the form of a flowchart. All numbers are different. Input: three numbers. Output: average (which is between the other two by value). Block diagram - http://d.pr/i/1kflp
<script> a=+prompt("Введите число:"); b=+prompt("Введите число:"); c=+prompt("Введите число:"); if (a>b) (b<c) var d = b; alert(d); if (a<b) (a>c) var d = a; alert(d); if (c<a) (c>b) var d = c; alert(d); </script> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Вывод среднего числа</title> </head> <body> <script> a=+prompt("Введите число:"); b=+prompt("Введите число:"); c=+prompt("Введите число:"); if (a>b) (b<c) var d = b; alert(d); if (a<b) (a>c) var d = a; alert(d); if (c<a) (c>b) var d = c; alert(d); </script> </body> </html>