Update TriangleWindow.xaml.cs
This commit is contained in:
@@ -38,7 +38,10 @@ namespace Lab
|
||||
return;
|
||||
}
|
||||
|
||||
bool check = x + y > z && x + z > y && y + z > x;
|
||||
double[] s = { x, y, z };
|
||||
Array.Sort(s);
|
||||
|
||||
bool check = s[0] > s[2] - s[1];
|
||||
|
||||
ResultText.Text = check ? "Треугольник существует." :
|
||||
"Треугольник не существует.";
|
||||
|
||||
Reference in New Issue
Block a user