using namespace std;
struct Treugolnik
{
int x1, y1;
int x2, y2;
int x3, y3;
};
int main()
{
Treugolnik a1;
cin >> a1.x1;
cin >> a1.x2;
cin >> a1.x3;
cin >> a1.y1;
cin >> a1.y2;
cin >> a1.y3;
float S, P, h,p;
P = sqrt(pow(a1.x2 - a1.x1, 2) + pow(a1.y2 - a1.y1, 2))+sqrt(pow(a1.x3 - a1.x2, 2) + pow(a1.y3 - a1.y2, 2))+ sqrt(pow(a1.x3 - a1.x1, 2) + pow(a1.y3 - a1.y1, 2));
p = 0.5*(sqrt(pow(a1.x2 - a1.x1, 2) + pow(a1.y2 - a1.y1, 2)) + sqrt(pow(a1.x3 - a1.x2, 2) + pow(a1.y3 - a1.y2, 2)) + sqrt(pow(a1.x3 - a1.x1, 2) + pow(a1.y3 - a1.y1, 2)));
S = sqrt(p*(p - sqrt(pow(a1.x2 - a1.x1, 2) + pow(a1.y2 - a1.y1, 2*(p - sqrt(pow(a1.x3 - a1.x2, 2) + pow(a1.y3 - a1.y2, 2)))*(p - sqrt(pow(a1.x3 - a1.x1, 2) + pow(a1.y3 - a1.y1, 2)));
h = 2 * S / sqrt(pow(a1.x2 - a1.x1, 2) + pow(a1.y2 - a1.y1, 2)); только к одной стороне
if (sqrt(pow(a1.x2 - a1.x1, 2) + pow(a1.y2 - a1.y1, 2)) == sqrt(pow(a1.x3 - a1.x2, 2) + pow(a1.y3 - a1.y2, 2)) == sqrt(pow(a1.x3 - a1.x1, 2) + pow(a1.y3 - a1.y1, 2)))
cout << "ранвостронний";
if (pow(sqrt(pow(a1.x2 - a1.x1, 2) + pow(a1.y2 - a1.y1, 2)), 2)+pow(sqrt(pow(a1.x3 - a1.x2, 2) + pow(a1.y3 - a1.y2, 2)),2)==pow(sqrt(pow(a1.x3 - a1.x1, 2) + pow(a1.y3 - a1.y1, 2)),2));
cout << "прямоугольный";
cout << S;
cout << h;
cout << P;
return 0;
}
console.writeline("введите количество чисел");
int n = convert.toint32(console.;
int[] a = new int[n];
console.writeline("введите числа");
for (int i = 0; i < n; i++)
a[i] = convert.toint32(console.;
int count = 0;
int min=a[0];
int max = a[0];
console.writeline("количество отрицательных");
for (int i = 0; i < n; i++)
if (a[i] < 0) { count++; }
console.writeline(count);
for (int i = 0; i < n; i++)
if (min > a[i]) { min = a[i]; }
console.writeline("минимальный элемент = "+min );
for (int i = 0; i < n; i++)
if (max < a[i]) { max = a[i]; }
console.writeline("максимальный элемент = "+ max);
int s = 0;
s = min + max;
console.writeline("сумма");
console.writeline(s);
console.writeline("числа кратные пяти и не больше числа задаваемым пользователем");
for (int i = 0; i < n; i++)
if (a[i] % 5==0 & & a[i]< n)
{ console.writeline(a[i]); }
console.readline();