The problem is here:
Console.WriteLine("Enter row2 col1");
string strX2 = Console.ReadLine();
double dblX2 = Convert.ToDouble(strX1); <--- Error
You’re converting strX1 instead of strX2. As a result, it thinks the two X values are the same.
3
solved System of equations program error