mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
11 lines
215 B
C#
11 lines
215 B
C#
using System;
|
|
|
|
class Bad
|
|
{
|
|
public static double SolveQuadratic(double a, double b, double c)
|
|
{
|
|
// TODO: handle case where a == 0
|
|
return (-b + Math.Sqrt(b * b - 4 * a * c)) / (2 * a);
|
|
}
|
|
}
|