Написать блок схему для этой программы
var
x1, y1, x2, y2, x3, y3, firsts, seconds, thirds: real;
begin
readln(x1,y1,x2,y2,x3,y3);
firsts : = sqrt(x1*x1+y1*y1);
seconds : = sqrt(x2*x2+y2*y2);
thirds : = sqrt(x3*x3+y3*y3);
if (firsts> seconds) then
if (firsts> thirds) then
writeln(x1,' ',y1)
else
writeln(x3,' ',y3)
else
if (seconds> thirds) then
writeln(x2,' ',y2)
else
writeln(x3,' ',y3);
end.
#include <conio.h>
#include <time.h>
using namespace std;
void main()
{
srand(time(NULL));
setlocale(0, "");
int arr[17];
int a, b, chet=0, nechet = 0;
cout << "Введите диапазон ." << endl << "Нижняя граница диапазона: "; cin >> a; cout << "Верхняя граница диапазона: "; cin >> b; cout << endl;
for (int i = 0; i < 17; ++i)
{
arr[i] = a + rand() % (b-a+1);
cout <<" "<<arr[i];
}
for (int i = 0; i < 17; ++i)
{
if (arr[i] % 2 == 0) chet++;
else nechet++;
} if (chet > nechet)
cout << " \n Четных больше";
else if (nechet>chet)
cout << "\n Нечетных больше";
else cout << "\n Одинаковое количество четных и нечетных";
_getch();
}