Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Library_Home_Works/HomeWork_2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static int GetSumDigit(int num)
public static bool AimHit(double x, double y, double r)
{
if (r <= 0) throw new ArgumentException("Радиус не может быть меньше или равен нулю");
return (Math.Pow(x, 2) + Math.Pow(y, 2)) <= r;
return (Math.Pow(x, 2) + Math.Pow(y, 2)) <= Math.Pow(r, 2);
}

// Записать логическое условие, которые будет истинным,
Expand Down